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

I know this is an old thread, but I encountered this issue today and wanted to share my solution to the problem because I haven’t seen this solution elsewhere on SO.

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

in console:

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 because 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/ nose

(note the https)

Hope this helps someone!

Leave a Comment