The following steps are specific to the PyCharm IDE. But if you prefer a different IDE, you can still use these steps as a reference for setting up CuPy, because the procedure is very similar. To configure CuPy with PyCharm, we focus on our Conda-based installation:
- First, let's create a virtual environment with Conda as a new PyCharm pure Python project. Choose New Project... from the PyCharm main menu:
![](https://static.packt-cdn.com/products/9781789341072/graphics/assets/0466503d-213e-405c-89c4-19afb429c885.png)
- Create a Pure Python project within a new local Conda environment, as shown in the following screenshot:
![](https://static.packt-cdn.com/products/9781789341072/graphics/assets/92378ad0-4f2e-498c-a2e4-b58c6aabb157.png)
- Wait for the environment to be created, as shown:
![](https://static.packt-cdn.com/products/9781789341072/graphics/assets/3fca0fe2-6e7d-4fb5-8c32-1faf4a7925aa.png)
- After creating the Conda environment, you will have a ready-to-use CuPy development environment, as shown in the following screenshot:
![](https://static.packt-cdn.com/products/9781789341072/graphics/assets/1b4767ce-598e-4ba2-a9bf-db613d05cfdb.png)
Now you can import cupy within your Python programs. As you can see, PyCharm Edu detects and recommends this as you begin to type import cupy...