1.ImportError: DLL load failed: 动态连接库(DLL)初始化例程失败。测试
进入终端,输入如下代码:.net
>pip uninstall tensorflow3d
>pip install --ignore-installed --upgrade tensorflow==1.5code
测试:blog
import tensorflow as tf
hello = tf.constant('hello,TensorFlow')
sess = tf.Session()
print(sess.run(hello))
2.以下所示,解决了动态连接库报错,出现了新的问题。
将h5py包升级到2.9.0版本没法解决ip
参考:https://blog.csdn.net/wangguan9527/article/details/82845409,这篇文章写得好详细,对我仍是解决不了报错pycharm
试着在pycharm和prompt终端卸载也不行it
最后,进入安装路径,E:\Anaconda3\Lib\site-packages,删除h5py安装文件,再去pycharm中卸载。pip
解决!