TF的安装参考如下博客
安装anaconda和TensorFlow ,并在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终于安装成功。
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步