98

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

Downloading/unpacking git-review
  Cannot fetch index base URL http://pypi.python.org/simple/
  Could not find any downloads that satisfy the requirement git-review
No distributions at all found for git-review
Storing complete log in /home/sai/.pip/pip.log

Does anyone has any idea about this?

2
  • 5
    Must be a proxy connection Commented Jan 23, 2014 at 2:29
  • 1
    "none of them seem to solve my problem" Which are these? So that we do not repeat ouselves. Commented Mar 19, 2014 at 23:14

36 Answers 36

1
2
0

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:

Sign up to request clarification or add additional context in comments.

Comments

0

I tried almost all answers and nothing fix my error, so I just reinstall python (in my case I have version 2.7.9 and I install 2.7.15) and the error finally fixed. No need to uninstall python first, the installer do it for you.

Comments

0

You can try with this below command:

python -m pip install --trusted-host https://pypi.python.org deepdiff

it will work.

Comments

0

I found the solutions from Daniel F and mattdedek very helpful: use an https URL, and upgrade pip in order to make that the default. But that still didn't fix the problem for me. I had this error, under Mac OS X / Python 3.4:

$ pip3 install Flask
Downloading/unpacking Flask
  Cannot fetch index base URL https://pypi.python.org/simple/
  Could not find any downloads that satisfy the requirement Flask
Cleaning up...
No distributions at all found for Flask
Storing debug log for failure in /Users/huttarl/.pip/pip.log

and pip.log basically showed the same thing:

  File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pip/index.py", line 277, in find_requirement
    raise DistributionNotFound('No distributions at all found for %s' % req) 
pip.exceptions.DistributionNotFound: No distributions at all found for Flask

With help from a friend, I learned that upgrading from Python 3.4 to 3.8 fixed the problem. Apparently this is because one of the newer versions of Python 3 included updated certificates:

Certificate verification and OpenSSL

This package includes its own private copy of OpenSSL 1.1.1. The trust certificates in system and user keychains managed by the Keychain Access application and the security command line utility are not used as defaults by the Python ssl module. A sample command script is included in /Applications/Python 3.8 to install a curated bundle of default root certificates from the third-party certifi package (https://pypi.org/project/certifi/). Double-click on Install Certificates to run it.

The bundled pip has its own default certificate store for verifying download connections.

After this upgrade, and running Install Certificates.command, the pip3 install Flask runs successfully.

You may have already upgraded to Python 3.6+ in Mac OS, and just overlooked this certificate installation command. In that case, browse to Applications/Python 3.x and double-click Install Certificates.command. (See Mac OSX python ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749))

Comments

0

Late 2022 answer after working on a legacy system:

Check a younger ubuntu version. By raising the ubuntu version more and more, testing this with a Dockerfile, I could fix a legacy setup by taking Ubuntu 18, see Docker build error "Cannot fetch index base URL http://pypi.python.org/simple/".

Comments

-1

For my case, I fix it by:

I copied libcrypto-1_1-x64.dll and libssl-1_1-x64.dll from Anaconda3\Library\bin to \Anaconda3\DLLs.

2 Comments

How does this relate to a connection failure in pip?
I don't know the reason either, but it worked for me. @snakecharmerb
1
2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.