. Advertisement .
..3..
. Advertisement .
..4..
Hi everyone, I’m learning about python. While working, I try run sudo pip install git-review. As a result, I get the message:
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
What can I do about the ”Cannot fetch index base URL https: //pypi.python.org/simple/” issue? Is there a better approach?
The cause:
After looking over your error, I realize that your pip version is out of date, it should use
https
instead ofhttp
.Solution:
You need to update your pip version so that it uses
https
form.In order to use
https
form, you can access to--index-url
(or short version is-i
) option, anindex-url
will be specified in the call to pip for itself. Next, you will be able to guide the pip how to upgrade by itself:Finally, let’s use
pip --version
to check your pip version.On the other hand, you also can resolve your problem with sudo pip install
--trusted-host --upgrade pip
because it requires unsafe origins must be clearly trusted.This is an old thread. However, I ran into this problem today and wanted to share the solution because I didn’t find it elsewhere on SO.
My environment: Python 2.7.12/2.7.14 in Ubuntu 12.04.5 LTS, virtualenv. Pip version 1.1.
My Errors:
in console:
In /.pip/pip.log
I was curious because I ran these commands in the same scripts without any issues for over a year.
This fixed it:
(Note the https).
We hope this helps!