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