• Register
0 votes
1k views

Problem :

I run sudo pip install git-review, and get the following error
cannot fetch index base url https://pypi.python.org/simple/
6 5 3
6,930 points

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

My environment: Python 2.7.12/2.7.14 on Ubuntu 12.04.5 LTS in a virtualenv, pip version 1.1.

My Errors:

pip install nose

Cannot fetch index base URL http://pypi.python.org/simple/

in ~/.pip/pip.log:

Could not fetch URL http://pypi.python.org/simple/: HTTP Error 403: SSL is required

Curious for me as I had been running these same commands in a script without issue for about a year.

this fixed it:

pip install --index-url=https://pypi.python.org/simple/

(please note the https)

Hope this helps someone!

Further Readings:

https://github.com/pypa/warehouse/issues/3654

9 7 4
38,600 points

Related questions

0 votes
2 answers 32 views
32 views
Problem: 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?
asked Jan 8 Mashhoodch 13k points
0 votes
1 answer 13 views
13 views
Problem: Any ideas on what I need to do to fix this? Thanks: Attributeerror: module 'importlib._bootstrap' has no attribute 'sourcefileloader'.
asked Mar 6 Wafa Abu Yousef 6.1k points
1 vote
1 answer 3.6K views
3.6K views
Problem : I have installed the pip for python 3.6 on my Ubuntu 14. By using below command : sudo apt-get install python3-pip Now to install pip3, it works very well. But after doing the installation, when I want to run it by using below command : pip3 ... has no attribute "SourceFileLoader" It appears that I did nothing wrong but I am really unable to figure out the reason behind the above error.
asked Dec 23, 2019 alecxe 7.5k points
1 vote
1 answer 7 views
7 views
Problem: Why I get this message ? Import Error On Keras ‘ Can not import names ‘abs’.
asked Mar 30 PkGuy 13.1k points
0 votes
0 answers 1 view
1 view
Problem: I am using python 2.7 under windows 10. I have installed scipy but that does not seem to solve the problem Any help is appreciated.?
asked 8 hours ago Sana8989 8.5k points
0 votes
1 answer 2 views
2 views
Problem: Whenever I am trying to install any package using pip, I am getting this import error: ImportError: cannot import name 'main' Please let me know if you need any further detail, I will update my question.
asked Mar 31 ummesalma 22.8k points
0 votes
1 answer 14 views
14 views
Problem; HELP! I need help understanding this error and why it still happened to me : Fatal error c1083: cannot open include file: 'mysql.h': no such file or directory.
asked Mar 6 Wafa Abu Yousef 6.1k points
0 votes
1 answer 22 views
22 views
Problem: from pip import main importerror: cannot import name 'main'
asked Feb 17 charles mathews 5.5k points
0 votes
1 answer 40 views
40 views
Problem: I am having an error of ImportError while trying to import _weakref. The error message looks like this: ImportError: cannot import name _remove_dead_weakref I understand something sneaky happened there in my codes but couldn’t identify the point of error. ... ;ll have a feasible solution from this forum. I am looking forward to reading your solutions. Thanks for your concern.
asked Jun 21, 2020 adamSw 11.3k points
0 votes
1 answer 2.9K views
2.9K views
Problem : Following is my issue: I tried to install mysqlclient like below : C:\Users\alecxe>pip install mysqlclient Collecting mysqlclient Using cached https://files.pythonhosted.org/packages/ec/fd/83329b9d3e14f7344d1 cb31f128e6dbba70c5975c9e57896815dbb1988ad/mysqlclient-1.3.13.tar.gz Installed ... beginner to this and would be very happy if any input as to how to go about fixing above error.
asked Dec 27, 2019 alecxe 7.5k points