今天升级pip超时提示 :failed with error code 1 in None,问题原因是pip版本过低,需要升级pip。
升级pip命令(绝逼不会超时了)
python -m pip install --upgrade pip -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
推荐几个安装库的国内镜像源,速度贼拉快!!
1、清华大学(完全度和速度都很好,是一个优秀的pip镜像源)
https://pypi.tuna.tsinghua.edu.cn/simple
安装库的时候就执行下面的语句,如下安装PyQt5
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple PyQt5
2、阿里云(完全度和速度也很好,是一个不错的选择)
http://mirrors.aliyun.com/pypi/simple/
3、网易(速度较快,但是完全度有限)
http://pypi.mirrors.ustc.edu.cn/simple/
ok,先写这些,后续有时间再更新。