Tensorflow 踩坑:ImportError: DLL load failed: 找不到指定的模块 Failed to load the native TensorFlow runtime
2019-01-25 14:09
3535 查看
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/m0_37324740/article/details/86644955
配置:
win7
python 3.6
tensorflow 1.12.0
cudatoolkit 9.0
cudnn 7.1.4
出现问题的原因:
当时想尝试下 Eager Execution 实现下 tensorflow 的动态图,用了什么安装语句不大记得了,回头 import tensorflow as tf 的时候就出现了一下的 bug:
网上查了很多资料,提供的解决方法如下:
- 各种版本兼容问题
- 安装 vs 2015
- 更新 numpy
- 安装 vc_redist.x64
- 检查环境变量
- 降低 protobuf 版本
- Process Monitor 监视寻找缺失的 dll 文件
.......................
反正以上的方法我都尝试了,我甚至重新安装了 cuda,一个上午过去了,都 gg 了。
这个时候我打算放弃了,重新安装算了 tensorflow 算了。
于是我在命令行输入 pip uninstall tensorflow-gpu==1.12.0
等待卸载完毕后 输入 conda list 检查下是否卸载了,结果发现 tensorflow、cudatoolkit 和 cudnn 都在,然后输入 import tensorflow as tf 神奇的发现没有任务报错。。。。 我确实是懵逼的。。。。然而问题算是解决了,真是神奇。
10分钟后我发现虽然 import 没有报错,但是 tensorflow 并不能用,老老实实的 在命令行输入 pip install tensorflow-gpu==1.12.0 重新安装了,安装后可以使用。
相关文章推荐
- win7/python3.5/tensorflow ImportError: DLL load failed: 找不到指定的模块
- ImportError: No module named '_pywrap_tensorflow' Failed to load the native TensorFlow runtime
- Failed to load the native TensorFlow runtime.Linux下解决方法Tensorflow GPU版本
- win10配置TensorFlow GPU出现Failed to load the native TensorFlow runtime."
- tensorflow安装出现Failed to load the native TensorFlow runtime问题
- import tensorflow时出现的“Failed to load the native TensorFlow runtime”错误解决办法
- from scipy.linalg import _fblas ImportError: DLL load failed: 找不到指定的模块
- 解决scrapy fetch http://www.csdn.net ModuleNotFoundError No module named 'win32api'和ImportError DLL load failed找不到指定的模块
- ImportError: DLL load failed: 找不到指定的模块
- tensorflowGPU版出现"Failed to load the native TensorFlow"问题
- 使用Python import cv2失败 显示ImportError: DLL load failed:找不到指定的模块。
- python mysqlLdb ImportError: DLL load failed: 找不到指定的模块
- wxpython ImportError: DLL load failed: 找不到指定的模块
- [Python] from scipy import sparse 报 DLL load failed:找不到指定模块错误
- CUDA:Failed to compile cuda_ndarray.cu: DLL load failed: 找不到指定的模块
- Windows下安装Tensorflow报错 “DLL load failed:找不到指定的模块"
- windows上安装tensorflow时报错,“DLL load failed: 找不到指定的模块”的解决方式 最近打算开始研究一下机器学习,今天在windows上装tensorflow花了点功夫
- 调用tensorflow报错ImportError: No module named '_pywrap_tensorflow_internal';DLL load failed: 找不到指定的模块
- Failed to load 'Assets/Plugins/x64/PPgunGyro.dll' with error '找不到指定的模块。
- import tensorflow 报错ImportError:DLL load failed with error code -1073741795