tensorflow-gpu ImportError: DLL load failed: 找不到指定的模块。解决办法

在尝试使用GPU进行TensorFlow训练时,遇到了'ImportError: DLL load failed: 找到指定的模块。'的错误。错误源于pip安装的tensorflow-gpu与CUDA版本不匹配。通过查看CUDA版本(nvcc -V),安装CPU版tensorflow,然后从特定源下载并安装匹配CUDA10的tensorflow_gpu-1.12.0版本,问题得以解决。
摘要由CSDN通过智能技术生成

最近好不容易弄了块1070的显卡,准备大展身手,做gpu训练。

调用之后会发现出现imprortError ImportError: DLL load failed: 找不到指定的模块。

具体错误是Traceback (most recent call last):
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in <module>
    from tensorflow.python.pywrap_tensorflow_internal import *
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in <module>
    _pywrap_tensorflow_internal = swig_import_helper()
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
    _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
  File "C:\Users\Administrator\AppData\Local\Programs\

评论 17
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值