TF的安装参考如下博客

安装anacondaTensorFlow ,并在pycharm中进行配置:

https://blog.csdn.net/huiyanfei/article/details/79048556

TensorFlow在window系统中的安装以及如何将TF环境嵌入Pycharm编辑器:

https://www.cnblogs.com/sima-3/p/11084557.html

使用anaconda安装tensorflow (windows10环境):

https://blog.csdn.net/ebzxw/article/details/80701613

 

遇到的问题:

错误1:

  ERROR: spyder 3.3.6 requires pyqt5<5.13;python_version >= “3”, which is not installed.

  ERROR: spyder 3.3.6 requires pyqtwebengine<5.13; python_version >= “3”, which is not installed.

  ERROR: astroid 2.3.1 requires typed-ast<1.5,>=1.4.0; implementation_name == “cpython” and python_version < “3.8”, which is not installed.

  ERROR: astroid 2.3.1 has requirement six==1.12, but you’ll have six 1.13.0 which is incompatible.

  原因:以上内容版本过低或着不匹配

  解决方案:

  https://blog.csdn.net/qq_43210957/article/details/103812433

 

错误2:

  DLL load failed: 找不到指定模块\Failed to load the native TensorFlow runtime.

python版本过高

  解决方法尝试:安装的版本是3.8.0,删除安装好的环境,重装环境python版本3.5.4

    失败。

  然后考虑tensorflow与现在的python3.8不匹配,所以删除了tf2.1 安装tf1.8

pip install tensorflow==1.8 -i https://pypi.tuna.tsinghua.edu.cn/simple

  然后就不报以上错误了,但是显示:

错误3:

  FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy.......

  原因:numpy版本过高

  解决方法:卸载numpy1.18.0  安装numpy1.16.0 问题完美解决!

  

 

  至此,tensorflow终于安装成功。

 

posted on 2020-04-16 13:07  金猫大帝  阅读(4173)  评论(0编辑  收藏  举报