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

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

    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.

提交回复
热议问题