码迷,mamicode.com
首页 > 系统相关 > 详细

linux-修改pip源

时间:2018-06-06 12:26:02      阅读:214      评论:0      收藏:0      [点我收藏+]

标签:mirror   glob   ted   http   .com   yun   目录   隐藏   time   

1.进入家目录的隐藏 .pip目录下

cd ~/.pip

2.创建并修改pip.conf

[global]
timeout = 10  # 超时 
index-url = http://mirrors.aliyun.com/pypi/simple/  # 第一源
index-index-url = http://pypi.douban.com/simple/  # 第二
[install]
trusted-host =
  mirrors.aliyun.com
  pypi.douban.com

ps: 可以只指定一个源 ,只需删除第二源 及 trusted-host对应的

linux-修改pip源

标签:mirror   glob   ted   http   .com   yun   目录   隐藏   time   

原文地址:https://www.cnblogs.com/tangpg/p/9143969.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!