使用pip安装速度慢问题的解决

参考博客:https://blog.csdn.net/u011580175/article/details/82292424

解决方案
所以,在使用pip时,可以指定使用国内的下载源这样下载速度会快很多。
只需要在pip命令使用时,添加 -i 源地址

例如安装scrapy
pip3 install scrapy -i https://pypi.mirrors.ustc.edu.cn/simple/

常用源
有以下的常用的国内源提供你选择:
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/
中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/
阿里云 http://mirrors.aliyun.com/pypi/simple/
豆瓣(douban) http://pypi.douban.com/simple/

猜你喜欢

转载自www.cnblogs.com/juluwangshier/p/11783626.html