首页 > 编程知识 正文

更改pip源地址,pip install 指定源

时间:2023-05-03 20:39:21 阅读:14703 作者:990

进入根目录:进入CD~~/.pip目录如果没有cd .pip文件夹创建新的mkdir .pip并创建进入cd .pip的pip.conf文件touch pip.conf修改: vim -I3359pyll simple永久修改内容: [ global ] index-URL=http://mirrors.a liyun.com/pypi/simple/[ install ]可信主机=mirrors

pipinstallxxx-I https://pypi.tuna.Tsinghua.edu.cn/simple reportlab

国内货源:推荐清华大学货源2018.7.27

[global]

index-URL=https://pypi.tuna.Tsinghua.edu.cn/simple

[install]

可信主机=pypi.tuna.Tsinghua.edu.cn

阿里巴巴云

[global]

索引- URL=http://mirrors.a liyun.com/pypi/simple /

[install]

trusted-host=mirrors.a liyun.com

豆瓣镜像:

[global]

index-URL=http://pypi.douban.com/simple

[install]

可信-主机=pypi.douban.co

Alibaba云(阿里巴巴云) http://mirrors.a liyun.com/pypi/simple /中国科技大学https://pypi.mirrors.ustc.edu.cn/simple/豆瓣http://pypi.douban.com清华大学https://pypi.tuna.Tsinghua.edu.cn/simple /中国科学技术大学http://pypi.mirrors.ustc.edu.cn/simpple

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。