您的位置:首页 > 其它

修改setup.py的源

2015-08-12 20:20 232 查看
方法一:

修改文件 ~/.pydistutils.cfg为:

[easy_install]

index_url = http://pypi.douban.com/simple
方法二:

直接在setup.py的同目录放置一个
setup.cfg:


[easy_install]

index_url = http://pypi.douban.com/simple
结:

加上配置后
python setup.py install
安装的时候,依赖就会从douban的源下载了。

转自:http://everet.org/python-pypi-source.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: