前提・実現したいこと
import cupy が上手くいかない
発生している問題・エラーメッセージ
>>> import cupy Traceback (most recent call last): File "C:\Users\User\AppData\Local\Programs\Python\Python37\lib\site-packages\cupy\__init__.py", line 21, in <module> from cupy import core # NOQA File "C:\Users\UserAppData\Local\Programs\Python\Python37\lib\site-packages\cupy\core\__init__.py", line 1, in <module> from cupy.core import core # NOQA File "cupy\core\core.pyx", line 1, in init cupy.core.core File "C:\Users\User\AppData\Local\Programs\Python\Python37\lib\site-packages\cupy\cuda\__init__.py", line 5, in <module> from cupy.cuda import compiler # NOQA File "C:\Users\User\AppData\Local\Programs\Python\Python37\lib\site-packages\cupy\cuda\compiler.py", line 14, in <module> from cupy.cuda import function File "cupy\cuda\texture.pxd", line 6, in init cupy.cuda.function File "cupy\cuda\texture.pyx", line 1, in init cupy.cuda.texture ImportError: DLL load failed: 指定されたモジュールが見つかりません。 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\User\AppData\Local\Programs\Python\Python37\lib\site-packages\cupy\__init__.py", line 42, in <module> six.reraise(ImportError, ImportError(msg), exc_info[2]) File "C:\Users\User\AppData\Local\Programs\Python\Python37\lib\site-packages\six.py", line 702, in reraise raise value.with_traceback(tb) File "C:\Users\User\AppData\Local\Programs\Python\Python37\lib\site-packages\cupy\__init__.py", line 21, in <module> from cupy import core # NOQA File "C:\Users\User\AppData\Local\Programs\Python\Python37\lib\site-packages\cupy\core\__init__.py", line 1, in <module> from cupy.core import core # NOQA File "cupy\core\core.pyx", line 1, in init cupy.core.core File "C:\Users\User\AppData\Local\Programs\Python\Python37\lib\site-packages\cupy\cuda\__init__.py", line 5, in <module> from cupy.cuda import compiler # NOQA File "C:\Users\User\AppData\Local\Programs\Python\Python37\lib\site-packages\cupy\cuda\compiler.py", line 14, in <module> from cupy.cuda import function File "cupy\cuda\texture.pxd", line 6, in init cupy.cuda.function File "cupy\cuda\texture.pyx", line 1, in init cupy.cuda.texture ImportError: CuPy is not correctly installed. If you are using wheel distribution (cupy-cudaXX), make sure that the version of CuPy you installed matches with the version of CUDA on your host. Also, confirm that only one CuPy package is installed: $ pip freeze If you are building CuPy from source, please check your environment, uninstall CuPy and reinstall it with: $ pip install cupy --no-cache-dir -vvvv Check the Installation Guide for details: https://docs-cupy.chainer.org/en/latest/install.html original error: DLL load failed: 指定されたモジュールが見つかりません。
該当のソースコード
pip install cupy-cuda101 pip install chainer >>>import cupy
試したこと
cudaの再インストール
pythonの再インストール
補足情報(FW/ツールのバージョンなど)
os windows10 64bit
cuda10.1
python3.7.7
nvidivaのGPUが刺さっていてドライバとCUDA Toolkit を予め導入していることが必要かと思いますが、すべて満たされていますか?
インストール記事は調べると色々出てきますので、それらも参考にされてください。
あなたの回答
tips
プレビュー