码迷,mamicode.com
首页 > 编程语言 > 详细

python 国内源

时间:2014-07-14 14:41:42      阅读:331      评论:0      收藏:0      [点我收藏+]

标签:style   http   color   文件   os   linux   

pipy国内镜像目前有:

 

http://pypi.douban.com/  豆瓣

http://pypi.hustunique.com/  华中理工大学

http://pypi.sdutlinux.org/  山东理工大学

http://pypi.mirrors.ustc.edu.cn/  中国科学技术大学

 

手动指定源,可以在pip后面跟-i 来指定源,比如用豆瓣的源来安装web.py框架:

pip install web.py -i http://pypi.douban.com/simple

如果要永久添加,可在当前用户目录下添加如下文件

 

vi ~/.pip/pip.conf
 
[global]
index-url=http://1.2.3.4/pypi
find-links=http://1.2.3.4/pypi
no-index = true
[install]
no-index = true
index-url=http://1.2.3.4/pypi
find-links=http://1.2.3.4/pypi
 
vi ~/.pydistutils.cfg
 
[easy_install]
index-url=http://1.2.3.4/pypi
find-links=http://1.2.3.4/pypi

 

python 国内源,布布扣,bubuko.com

python 国内源

标签:style   http   color   文件   os   linux   

原文地址:http://www.cnblogs.com/outofthink/p/3841792.html

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