• Register
0 votes

Problem :

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

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:


38.6k points
edited by

Related questions

1 vote
1 answer 2.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
0 votes
1 answer 22 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 adamSw 11.3k points
0 votes
1 answer 2.1K 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
1 vote
1 answer 57 views
Problem: I tried to install mysql in my system by running the command: pip install mysql-python But it shows: C:\Users\ASUS>pip install mysql-python Collecting mysql-python Downloading https://files.pythonhosted.org/packages/a5/e9/51b544da85a36a68debe7a7091f068d802fc515a3a202652828c73453cad/MySQL ... --user --prefix= Check the logs for full command output. What should I do now to fix this problem.
asked May 12 samhaz 5k points
2 votes
1 answer 1.9K views
Problem: When I try to run the below command on my command prompt: python get-pip.py It shows the following message: C:\Users\ASUS>python get-pip.py python: can't open file 'get-pip.py': [Errno 2] No such file or directory How can I have pip installed in my system. Then why am I getting this error message and why I can not open this file. Thanks in advance.
asked May 6 samhaz 5k points