安装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