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

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

    I was able to fix this by upgrading my python, which had previously been attached to an outdated version of OpenSSL. Now it is using 1.0.1h-1 and my package will pip install.

    FYI, my log and commands, using anaconda and installing the pytest-ipynb package [1] :

    
    $ conda update python
    Fetching package metadata: ....
    Solving package specifications: .
    Package plan for installation in environment /Users/me/anaconda/envs/py27:

    The following NEW packages will be INSTALLED: openssl: 1.0.1h-1

    The following packages will be UPDATED: python: 2.7.5-3 --> 2.7.8-1 readline: 6.2-1 --> 6.2-2 sqlite: 3.7.13-1 --> 3.8.4.1-0 tk: 8.5.13-1 --> 8.5.15-0

    Proceed ([y]/n)? y Unlinking packages ... [ COMPLETE ] |#############################################################| 100% Linking packages ... [ COMPLETE ] |#############################################################| 100%

    $ pip install pytest-ipynb Downloading/unpacking pytest-ipynb Downloading pytest-ipynb-0.1.1.tar.gz Running setup.py (path:/private/var/folders/4f/b8gwyhg905x94twqw2pbklyw0000gn/T/pip_build_me/pytest-ipynb/setup.py) egg_info for package pytest-ipynb

    Requirement already satisfied (use --upgrade to upgrade): pytest in /Users/me/anaconda/envs/py27/lib/python2.7/site-packages (from pytest-ipynb) Installing collected packages: pytest-ipynb Running setup.py install for pytest-ipynb

    Successfully installed pytest-ipynb Cleaning up...

    [1] My ticket about this issue; https://github.com/zonca/pytest-ipynb/issues/1

提交回复
热议问题