路漫漫其修远兮,吾将上下而求索

导航

python使用国内第三方库

pip 安装第三方库速度太慢

可设置 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/

设置方法,以清华镜像源为例:

临时使用

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple xxxxxxx

永久设置

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

 

 

 

参考:更换Python pip库镜像地址_donsa的博客-CSDN博客_pip镜像安装地址 

 

posted on 2020-03-13 01:06  爱在西元间  阅读(257)  评论(0编辑  收藏  举报