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报错

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`.
  from ._conv import register_converters as _register_converters
Using TensorFlow backend.
Traceback (most recent call last):
  File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\platform\self_check.py",line 75,in preload_check
    ctypes.WinDLL(build_info.cudart_dll_name)
  File "C:\ProgramData\Anaconda3\lib\ctypes\__init__.py",line 348,in __init__
    self._handle = _dlopen(self._name,mode)
OSError: [WinError 126] 找不到指定的模块。

During handling of the above exception,another exception occurred:

Traceback (most recent call last):
  File "D:/keras-master/examples/cifar10_cnn.py",line 8,in <module>
    import keras
  File "D:\keras-master\keras\__init__.py",line 3,in <module>
    from . import utils
  File "D:\keras-master\keras\utils\__init__.py",line 6,in <module>
    from . import conv_utils
  File "D:\keras-master\keras\utils\conv_utils.py",line 9,in <module>
    from .. import backend as K
  File "D:\keras-master\keras\backend\__init__.py",line 84,in <module>
    from .tensorflow_backend import *
  File "D:\keras-master\keras\backend\tensorflow_backend.py",line 5,in <module>
    import tensorflow as tf
  File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\__init__.py",line 24,in <module>
    from tensorflow.python import *
  File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\__init__.py",line 49,in <module>
    from tensorflow.python import pywrap_tensorflow
  File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py",line 30,in <module>
    self_check.preload_check()
  File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\platform\self_check.py",line 82,in preload_check
    % (build_info.cudart_dll_name,build_info.cuda_version_number))
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
原文链接:https://www.f2er.com/windows/372812.html

猜你在找的Windows相关文章