本站文章部分原创,其他互联网采集,如有侵权,请联系管理员删除。邮箱:admin@yunwei.org.cn

centos 更换python源

Centos fento 477℃ 0评论

方案一:修改配置文件

1)检查pip.conf文件是否存在
>> cd ~
>> mkdir .pip
>> ls ~/.pip
2)直接编辑pip.conf
sudo vi ~/.pip/pip.conf

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

[global]

timeout = 6000

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

[install]

use-mirrors = true

mirrors = http://pypi.douban.com/simple/


 

转载请注明:FenTo的充电站 » centos 更换python源

喜欢 (0)
发表我的评论
取消评论
表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址