No distributions at all found for some package

后端 未结 9 1218
生来不讨喜
生来不讨喜 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...
    
    0 讨论(0)
  • 2021-01-01 13:14

    Lots of solutions to this, most effectively coming down to update PIP. On MacOS (Sierra), This was my solution:

    • Download python3 installer of choice
    • Install Package (this includes a newer version of pip)
    • Remove old version of python from $PATH in ~/.bash_login (new one added by installer)
    • pip3 install packagename (no sudo)

    After that I was still prompted to update pip and did so: pip3 install --upgrade pip

    0 讨论(0)
  • 2021-01-01 13:23

    Try upgrading pip. Version 7.1.2 does not have this issue.

    easy_install pip==7.1.2
    
    0 讨论(0)
提交回复
热议问题