pip connection failure: cannot fetch index base URL http://pypi.python.org/simple/

后端 未结 30 919
后悔当初
后悔当初 2020-11-28 23:19

I run sudo pip install git-review, and get the following messages:

Downloading/unpacking git-review
  C         


        
相关标签:
30条回答
  • 2020-11-28 23:39

    I have met the same questions with you. When I realize it may be caused by unmatched version of numpy or pip, I uninstalled numpy and pip, then continue as this 'https://radimrehurek.com/gensim/install.html', at last I succeed!

    0 讨论(0)
  • 2020-11-28 23:41

    My explanation/enquiry is for windows environment.
    I am pretty new to python, and this is for someone still novice than me.
    I installed the latest pip(python installer package) and downloaded 32 bit/64 bit (open source) compatible binaries from http://www.lfd.uci.edu/~gohlke/pythonlibs/, and it worked.

    Steps followed to install pip, though usually pip is installed by default during python installation from www.python.org/downloads/
    - Download pip-7.1.0.tar.gz from https://pypi.python.org/pypi/pip.
    - Unzip and un-tar the above file.
    - In the pip-7.1.0 folder, run: python setup.py install. This installed pip latest version.

    Use pip to install(any feasible operation) binary package. Run the pip app to do the work(install file), as below:
    \python27\scripts\pip2.7.exe install file_path\file_name --proxy
    If you face, wheel(i.e egg) issue, use the compatible binary package file. Hope this helps.

    0 讨论(0)
  • 2020-11-28 23:41

    I had a similar problem, but in my case I was getting the error:

    Downloading/unpacking bencode
      Cannot fetch index base URL http://c.pypi.python.org/simple/
      Could not find any downloads that satisfy the requirement bencode
    No distributions at all found for bencode
    Storing complete log in /home/andrew/.pip/pip.log
    

    In my case I was able to fix the error by editing ~/.pip/pip.conf and changing http://c.pypi.python.org/simple/ to http://pypi.python.org/simple and then pip worked fine again.

    0 讨论(0)
  • 2020-11-28 23:41

    My problem was the system virtualenv version.

    When I created an env with python3 venv everything worked. But when I used virtualenv (by default with python2.7) to create an env I receive those error messages.

    In the virtualenv created the pip version was 1.5.6, but my system pip version was 10.0.1

    Then I ran (outside any env):

    pip install virtualenv --upgrade

    It upgraded virtualenv to version 16.0.0 and now my pip install in the envs created with virtualenv and python2.7 work flawlessly. Also, the pip version inside the env is now 10.0.1.

    Before upgrade:

    0 讨论(0)
  • 2020-11-28 23:43

    I faced same problem but that was related proxy. it was resolved by setting proxy.

    Set http_proxy=http://myuserid:mypassword@myproxyname:myproxyport
    Set https_proxy=http://myuserid:mypassword@myproxyname:myproxyport
    

    This might help someone.

    0 讨论(0)
  • 2020-11-28 23:44
    C:\Users\Asus>pip install matplotlib
    Downloading/unpacking matplotlib
      Cannot fetch index base URL https://pypi.python.org/simple/
      Could not find any downloads that satisfy the requirement matplotlib
    Cleaning up...
    No distributions at all found for matplotlib
    Storing debug log for failure in C:\Users\Asus\pip\pip.log
    

    I used 'easy_install pip==1.2.1' and it worked fine.

    C:\Users\Asus>easy_install pip==1.2.1
    Searching for pip==1.2.1
    Reading https://pypi.python.org/simple/pip/
    Best match: pip 1.2.1
    Downloading ...
    

    Then on using this command 'pip install matplotlib'

    C:\Users\Asus>pip install matplotlib
    Downloading/unpacking matplotlib
      Downloading matplotlib-2.0.0b4.tar.gz (unknown size):
    
    0 讨论(0)
提交回复
热议问题