Pip -- linux 下的源 配置


1.在根目录下创建.pip文件夹

mkdir ~/.pip

2.在创建好的.pip文件夹下创建pip源配置文件

touch ~/.pip/pip.conf 

3.选择国内某一pip源配置到文件pip.conf中,样例如下(这里用的是阿里的pip源):

[global] index-url=http://mirrors.aliyun.com/pypi/simple trusted-host=mirrors.aliyun.com

版本2:
[global]
timeout = 60
index = http://pip.baidu.com/root/baidu/
index-url = http://pip.baidu.com/root/baidu/simple/
trusted-host = pip.baidu.com
[list]
format = columns
 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM