pip has stopped working on my ubuntu server and gives the below error when I try to download anything.
Answer: upgrade pip.
I had version 1.1 installed. With sudo pip install --upgrade pip
I got version 8.1.2 and the package I wanted installed properly.
Why dont you try pip install in super user. Type su and your password, then try sudo pip install SQLAlchemy
Although it is old question, my solution may help someone.
pip install SQLAlchemy --extra-index-url=https://pypi.python.org/simple/
This works for me.
You can pass a specific index url with -i
:
sudo pip install SQLAlchemy -i https://pypi.python.org/simple
You need to fetch pypi over HTTPS, not HTTP.
For some reason your pip is configured to retrieve from http://pypi.python.org/simple/ rather than https://pypi.python.org/simple/
You are not using https connections, which had been used since late 2013.
You may use --index options to correct index url. See http://pip.readthedocs.org/en/latest/reference/pip_wheel.html#index-url