设置默认pip下载源

镜像:

index-url = http://mirrors.aliyun.com/pypi/simple/  # 阿里云
index-url = https://pypi.tuna.tsinghua.edu.cn/simple/  # 清华大学 
index-url = http://pypi.mirrors.ustc.edu.cn/simple/  # 中国科学技术大学 

 

操作: win+R打开【运行】搜索框,输入%APPDATA%,打开对应路径,并新建名为pip的文件夹,在该文件夹下新建pip.ini文件,输入以下内容

[global]
time-out = 50
index-url = https://pypi.tuna.tsinghua.edu.cn/simple/
[install] trusted-host = tsinghua.edu.cn

 

posted @ 2020-08-31 16:17  君君姐  阅读(441)  评论(0编辑  收藏  举报