方法一:

修改文件 ~/.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

相关文章:

  • 2021-08-10
  • 2022-12-23
  • 2021-08-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-10
  • 2022-12-23
  • 2022-12-23
  • 2022-01-28
相关资源
相似解决方案