TensorFlow安装报错---动态链接库(DLL)初始化例程失败

ImportError: DLL load failed: 动态链接库(DLL)初始化例程失败。

 

进入终端,输入以下代码:

>pip uninstall tensorflow

>pip install --ignore-installed --upgrade tensorflow==1.5

测试:

import tensorflow as tf
hello = tf.constant('hello,TensorFlow')
sess = tf.Session()
print(sess.run(hello))

将h5py包升级到2.9.0版本,卸载均无法解决

参考:https://blog.csdn.net/wangguan9527/article/details/82845409




                  

相关文章

MNIST数据集可以说是深度学习的入门,但是使用模型预测单张M...
1、新建tensorflow环境(1)打开anacondaprompt,输入命令行...
这篇文章主要介绍“张量tensor是什么”,在日常操作中,相信...
tensorflow中model.fit()用法model.fit()方法用于执行训练过...
https://blog.csdn.net/To_be_little/article/details/12443...
根据身高推测体重const$=require('jquery');const...