升级tensorflow遇到的坑

下载超时解决方法:

pip --default-timeout=100 install -U tensorflow    数字是可以修改的

下载速度慢  使用镜像安装

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple tensorflow==版本号

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.

 

错误:无法卸载“ wrapt”。 这是一个distutils安装的项目,因此我们无法准确确定属于该文件的文件,这只会导致部分卸载。

解决方法:

 pip install --upgrade wrapt 将正确安装wrapt

猜你喜欢

转载自www.cnblogs.com/by-DSL/p/12365481.html