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終於安裝成功。