当前位置:   article > 正文

ImportError: Could not find 'cudart64_90.dll'问题解决

ImportError: Could not find 'cudart64_90.dll'问题解决


cuda 8.0+cudnn 6.0+tensorflow1.4 以下(正常执行),1.5、1.6、1.7、1.8报错

  1. C:\ProgramData\Anaconda3\lib\site-packages\h5py\__init__.py:34: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
  2. from ._conv import register_converters as _register_converters
  3. Using TensorFlow backend.
  4. Traceback (most recent call last):
  5. File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\platform\self_check.py", line 75, in preload_check
  6. ctypes.WinDLL(build_info.cudart_dll_name)
  7. File "C:\ProgramData\Anaconda3\lib\ctypes\__init__.py", line 348, in __init__
  8. self._handle = _dlopen(self._name, mode)
  9. OSError: [WinError 126] 找不到指定的模块。
  10. During handling of the above exception, another exception occurred:
  11. Traceback (most recent call last):
  12. File "D:/keras-master/examples/cifar10_cnn.py", line 8, in <module>
  13. import keras
  14. File "D:\keras-master\keras\__init__.py", line 3, in <module>
  15. from . import utils
  16. File "D:\keras-master\keras\utils\__init__.py", line 6, in <module>
  17. from . import conv_utils
  18. File "D:\keras-master\keras\utils\conv_utils.py", line 9, in <module>
  19. from .. import backend as K
  20. File "D:\keras-master\keras\backend\__init__.py", line 84, in <module>
  21. from .tensorflow_backend import *
  22. File "D:\keras-master\keras\backend\tensorflow_backend.py", line 5, in <module>
  23. import tensorflow as tf
  24. File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\__init__.py", line 24, in <module>
  25. from tensorflow.python import *
  26. File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\__init__.py", line 49, in <module>
  27. from tensorflow.python import pywrap_tensorflow
  28. File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 30, in <module>
  29. self_check.preload_check()
  30. File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\platform\self_check.py", line 82, in preload_check
  31. % (build_info.cudart_dll_name, build_info.cuda_version_number))
  32. ImportError: Could not find 'cudart64_90.dll'. TensorFlow requires that this DLL be installed in a directory that is named in your %PATH% environment variable. Download and install CUDA 9.0 from this URL: https://developer.nvidia.com/cuda-toolkit

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/一键难忘520/article/detail/828030
推荐阅读
相关标签
  

闽ICP备14008679号