一、超时
解决方法:更换pip的下载路径
阿里云
http://mirrors.aliyun.com/pypi/simple/
中国科技大学
https://pypi.mirrors.ustc.edu.cn/simple/
豆瓣
http://pypi.douban.com/simple/
清华大学
https://pypi.tuna.tsinghua.edu.cn/simple/
中国科学技术大学
http://pypi.mirrors.ustc.edu.cn/simple/
例:安装TensorFlow时,用管理员身份执行cmd,然后输入如下命令
pip install tensorflow -i https://pypi.tuna.tsinghua.edu.cn/simple/
二、Cannot uninstall ‘xxx’
解决方法:
pip install xxx --ignore-installed