2013-03-26 87 views

回答

13

唐纳德·Stufft在pip issue 864回答,这是因为pip抓取大量寻找包sdist的页面,并且此行为从easy_install继承。如果删除该功能有些包不工作,有些人开始了新的PEP消除这种外部链接的行为:PEP 438 - Transitioning to release-file hosting on PyPI

卢克 - 唐纳德说“直到PEP438实现你也可以使用Crate.io的受限API, pip install -i https://restricted.crate.io/这将只安装直接托管的版本。“

但作为Marcus Smith mentioned in the virtualenv mailing list,你可以下载安装包的依赖关系,并忽略PyPI中,并使用你的下载目录:http://www.pip-installer.org/en/latest/cookbook.html#fast-local-installs


使用https://restricted.create.io避免外部链接行为例:

$ pip install -i https://restricted.crate.io/ coverage 

参考:

+0

只需使用''--download''选项作为''pip install''似乎没有帮助,但使用https://restricted.crate.io/。 – 2013-04-05 01:05:06