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

后端 未结 30 1060
后悔当初
后悔当初 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: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.

提交回复
热议问题