No distributions at all found for some package

后端 未结 9 1283
生来不讨喜
生来不讨喜 2021-01-01 12:19

error when installing some package but its actualy existing example django-ajax-filtered-fields==0.5

Downloading/unpacking django-aja

9条回答
  •  情书的邮戳
    2021-01-01 13:12

    Proxy Settings

    Still unsure if my issue has the same cause as with the OP, but one error message was the same:

      Cannot fetch index base URL https://pypi.python.org/simple/
      Could not find any downloads that satisfy the requirement Django
    No distributions at all found for Django
    

    Talking to a colleague exposed it was a site-security-based issue. The following commands were required:

    set https_proxy=*https proxy*
    set http_proxy=*http proxy*
    pip install Django
    

    where *https proxy* and *http proxy* are appropriate URLs-with-ports for our site.

    Downloading/unpacking Django
    Installing collected packages: Django
    Successfully installed Django
    Cleaning up...
    

提交回复
热议问题