国内源快速更新pip安装第三方库

国内镜像源:

(1)豆瓣: https://pypi.douban.com/simple

(2)阿里云: https://mirrors.aliyun.com/pypi/simple

(3)清华:https://pypi.tuna.tsinghua.edu.cn/simple

(4)中国科技大学:https://pypi.mirrors.ustc.edu.cn/simple

临时更换镜像源

在命令行输入时,原来的命令上加上-i 镜像地址,如下:

pip install pipenv -i https://mirrors.aliyun.com/pypi/simple

永久更换镜像源

pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

 

posted @ 2020-12-09 16:53  极客兵兵  阅读(280)  评论(0)    收藏  举报