美文网首页
Python3更换国内软件镜像源

Python3更换国内软件镜像源

作者: Youngmon | 来源:发表于2019-12-18 21:04 被阅读0次
1.检查pip.conf文件是否存在
cd ~
mkdir .pip
ls ~/.pip
2.直接编辑pip.conf

vi ~/.pip/pip.conf 
[global]  
timeout = 6000  
index-url = http://pypi.douban.com/simple/  
  
[install]  
use-mirrors = true  
mirrors = http://pypi.douban.com/simple/  
trusted-host = pypi.douban.com

相关文章

网友评论

      本文标题:Python3更换国内软件镜像源

      本文链接:https://www.haomeiwen.com/subject/byvcnctx.html