I installed cupy using pip install cupy-cuda90
. The installation went successfully (after installing MSVC 2017) and pip list
shows cupy-cuda90.
When I type import cupy
I get the following error:
Traceback (most recent call last):
File "<ipython-input-1-329ec5cf1bc8>", line 1, in <module>
import cupy
ModuleNotFoundError: No module named 'cupy'
I am on Windows 10 (1607), CUDA 9.0 is installed, and CUDA_PATH & CUDA_PATH_V9_0 point to the right directory.
答案 0 :(得分:1)
问题解决了。
虽然我从特定的win python安装开始pip,但安装了另一个python解释器,该解释器是在PATH环境变量中设置的。因此pip.exe只是使用了其他python解释器,并在那里安装了CuPy。