2013-03-26 86 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