修改setup.py的源
2015-08-12 20:20
232 查看
方法一:
修改文件 ~/.pydistutils.cfg为:
[easy_install]
index_url = http://pypi.douban.com/simple
方法二:
直接在setup.py的同目录放置一个
[easy_install]
index_url = http://pypi.douban.com/simple
结:
加上配置后
转自:http://everet.org/python-pypi-source.html
修改文件 ~/.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
相关文章推荐
- 如何手动生成heapdump和javacore文件
- 关于技术博客我想说
- 关于技术博客我想说
- Android 不归路之百度地图API学习(导航篇)
- hard link与symbolic link区别
- 1041 最长公共子序列
- HDOJ 3371 Connect the Cities(最小生成树--prime 水)
- 搜索树
- DFS
- 分割字符串
- 罗将公布手机锤,我感到深深的内疚
- 关于CABAC熵编码一些问题的研究
- 轮舞前夕
- 2015/08/12/HTTPURL中GET和POST/HTTPClient中的GET和POST
- C#学习之While循环
- UITouch 摇晃手势启动器
- Balanced Binary Tree
- Java——StringBuffer
- Java心得12
- 四层和七层负载均衡的区别