1. 程式人生 > 其它 >tensorflow安裝過程(遇到的小坑-windows)

tensorflow安裝過程(遇到的小坑-windows)

技術標籤:踩過的坑深度學習tensorflow

安裝tensorflow

cmd 終端下

pip install tensorflow

錯誤1:

在這裡插入圖片描述
ERROR: Cannot uninstall ‘wrapt’. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
解決方法:

pip install -U --ignore-installed wrapt enum34 simplejson netaddr

參考:https://www.cnblogs.com/xiaowei2092/p/11025155.html
使用時下載出現錯誤
解決方法:
升級pip :

pip install --upgrade pip

錯誤2

ERROR: tensorboard 1.14.0 has requirement setuptools>=41.0.0, but you’ll have setuptools 39.1.0 which is incompatible.
原因: setuptools 版本太低
**辦法:**更新setuptools版本

pip install --upgrade setuptools

錯誤3

ERROR: Could not find a version that satisfies the requirement numpy<2.0,>=1.16.
0 (from tensorflow) (from versions: none)
ERROR: No matching distribution found for numpy<2.0,>=1.16.0 (from tensorflow)
解決方法:

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