pip install tensorflow
出现如下错误提示(setuptools 版本太旧 , wrapt 不能卸载):
tensorboard 1.14.0 has requirement setuptools>=41.0.0, but you'll have setuptools 40.6.3 which is incompatible.
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 --ignore-installed tensorflow
更新 wrapt
>> pip install --ignore-installed wrapt
Collecting wrapt
Installing collected packages: wrapt
Successfully installed wrapt-1.11.2
更新 setuptools
>> pip install --ignore-installed setuptools
Installing collected packages: setuptools
Successfully installed setuptools-41.2.0
安装 tensorflow, 这个时候就不出现错误提示了。
pip install tensorflow
pip list # 查看安装好的 tensorflow
pip install --ignore-installed <库名>
【异常】tensorboard 1.14.0 has requirement setuptools>=41.0.0, but you'll have setuptools 40.6.3
原文:https://www.cnblogs.com/enumx/p/12336712.html