微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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.jb51.cc/windows/372812.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐