`
2014马年
  • 浏览: 118900 次
  • 性别: Icon_minigender_1
  • 来自: 晋中
社区版块
存档分类
最新评论

pypi 的一些源

阅读更多


有时候官方的pip源会被屏蔽,在群里看到大家推荐的其他源,于是记录了下,

豆瓣的挺快。

具体来源在这里

 

 

Mirror Location # of Packages Last update Age Response Time (ms)* Status
pypi.python.org SAN FRANCISCO, CALIFORNIA US 40985 2014-03-13 01:36:05 0 seconds ago  31.5  Fresh
pypi.douban.com FUZHOU, FUJIAN CN 40590 2014-03-13 01:35:46 19 seconds ago  1534.37 Fresh
pypi.hustunique.com WUHAN, HUBEI CN 40585 2014-03-13 01:30:58 5 minutes, 7 seconds ago 580.63 Fresh
pypi.gocept.com OBERHAUSEN, NORDRHEIN-WESTFALEN DE 40808 2014-03-13 01:35:02 1 minutes, 3 seconds ago 181.23 Fresh
pypi.tuna.tsinghua.edu.cn BEIJING, BEIJING CN 40985 2014-03-13 01:32:35 3 minutes, 30 seconds ago 1378.89

 

 

直接使用:

pip install -i http://<mirror>/simple <package>

例如

 

  1. pip install -i http://pypi.douban.com/simple simplejson  

 

 

修改setting:
Add ~/.pip/pip.conf that includes:

[global]
index-url = http://<mirror>/simple

 

win下的使用方法:

官网的guide: On Windows, the configuration file is: %HOME%\pip\pip.ini

就是当前用户的主目录:

例如我这里就是 C:\Users\Administrator\pip

添加内容和上面一样

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics