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

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

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

Downloading/unpacking git-review
  C         


        
30条回答
  •  -上瘾入骨i
    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:

提交回复
热议问题