Tensorflow导入报"Failed to load the native TensorFlow runtime."解决方案
来源:互联网 发布:mysql 按月份查询 编辑:程序博客网 时间:2024/05/17 06:57
问题
Windows下安装tensorflow的GPU版本后,在运行
import tensorflow as tf
时,报Failed to load the native TensorFlow runtime.错误
解决方案
出现这个错误的可能原因有很多,我个人在网上搜索时也找了很多个不同的答案,这里我简单的整理一下。
1、确定你的整体安装流程没有问题,这里可以参照Keras中文文档中的对于Tensorflow安装部分的流程介绍
2、确定你的系统中有MSVCP140.DLL,如果没有,可以在这里下载
3、确定你的CUDA版本和CUDNN版本匹配,例如cudnn-8.0-windows7-x64-v5.1.zip就是针对CUDA8.0版本的,你可以在这里下载8.0的CUDNN5.1版本
4、尝试修改CUDA bin文件目录下的”cudnn64_6.dll”为“cudnn64_5.dll”
5、确认你的系统PATH环境变量设置正确,把CUDA目录下的bin,lib/x64等路径包含进去
6、确认你的电脑正确安装了DXSDK_Jun10
7、最新版本的tesnorflow可能存在一定问题,请尝试历史版本如
- tensorflow 1.2
pip install https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-1.2.0-cp35-cp35m-win_amd64.whl
- tensorflow 0.12.0rc0
pip install https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-0.12.0rc0-cp35-cp35m-win_amd64.whl
- 任意历史版本
pip install tensorflow-gpu==X.X.X
阅读全文
0 0
- Tensorflow导入报"Failed to load the native TensorFlow runtime."解决方案
- Failed to load the native TensorFlow runtime. See https://www.tensorflow.org/install/install_source
- tensorflow安装出现Failed to load the native TensorFlow runtime问题
- win10配置TensorFlow GPU出现Failed to load the native TensorFlow runtime."
- ImportError: No module named '_pywrap_tensorflow' Failed to load the native TensorFlow runtime
- tensorflowGPU版出现"Failed to load the native TensorFlow"问题
- Tensorflow-报错解决方案
- 【Tensorflow】报错解决方案
- eclipse打开报"Failed to load the JNI shared library"解决方案
- eclipse(优化五) eclipse启动时,报"failed to load the JNI shared library"的解决方案
- TensorFlow 报错 failed call to cuDevicePrimaryCtxRetain: CUDA_ERROR_INVALID_DEVICE
- failed to load OpenCL runtime
- 打开eclipse,报Failed to load the JNI shared library
- eclipse报错:Failed to load the JNI shared library
- cocoside报Failed to load the JNI shared library
- Eclipse报错-->failed to load the jni shared library
- eclipse报错:Failed to load the JNI shared library
- eclipese打不开,报Failed to load the JNI...
- 我是如何逐步学会“好好说话”的
- ubuntu 软件安装卸载常用方法
- softma回归分析
- Java opp
- Lintcode二进制中有多少个1
- Tensorflow导入报"Failed to load the native TensorFlow runtime."解决方案
- Kaggle-Titanic一个完整的例子
- zookeeper集群
- POJ-3264 Balanced Lineup(rmq模板题)
- MATLAB基础
- python模拟登陆豆瓣网和验证码识别
- Linux命令集锦(Ubuntu)
- xampp版本和具体的php,mysql版本的对应
- mysql基准测试-sysbench