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

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

    in my case I would install django (

    pip install django

    ) and it has a same problem with ssl certificate (Cannot fetch index base URL http://pypi.python.org/simple/ )

    it's from virtualenv so DO :

    FIRST: delete your virtualenv

    deactivate rm -rf env

    SECOND: check have pip

    pip3 -V

    if you don't have

    sudo apt-get install python3-pip

    FINALLY:

    install virtualenv with nosite-packages and make your virenviroment

    sudo pip3 install virtualenv virtualenv --no-site-packages -p /usr/bin/python3.6

    . env/bin/activate

提交回复
热议问题