原文鏈接:https://www.cnblogs.com/cxhzy/p/11042669.html
pip 使用鏡像下載第三方包
pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple 包名例如:
pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple pandas
國內(nèi)源:
清華:https://pypi.tuna.tsinghua.edu.cn/simple
阿里云:http://mirrors.aliyun.com/pypi/simple/
中國科技大學 https://pypi.mirrors.ustc.edu.cn/simple/
華中理工大學:http://pypi.hustunique.com/
山東理工大學:http://pypi.sdutlinux.org/
豆瓣:http://pypi.douban.com/simple/
永久:
解決方法不唯一,僅于此介紹最簡單粗暴、小白易上手的方法--
將pip的下載源更換為國內(nèi)的鏡像源。
下載慢是因為pip默認下載源在國外。
換成國內(nèi)各個優(yōu)秀的鏡像源就OK啦。