Note: You may need to use sudo python above if not in a virtual environment.
What’s happening:
Python.org sites are stopping support for TLS versions 1.0 and 1.1. This means that Mac OS X version 10.12 (Sierra) or older will not be able to use pip unless they upgrade pip as above.
(Note that upgrading pip via pip install --upgrade pip will also not upgrade it correctly. It is a chicken-and-egg issue)
If you are running macOS/OS X version 10.12 or older, then you ought
to upgrade to the latest pip (9.0.3) to connect to the Python Package
Index securely:
Kenil Vasani
Upgrade pip as follows:
Note: You may need to use
sudo python
above if not in a virtual environment.What’s happening:
Python.org sites are stopping support for TLS versions 1.0 and 1.1. This means that Mac OS X version 10.12 (Sierra) or older will not be able to use pip unless they upgrade pip as above.
(Note that upgrading pip via
pip install --upgrade pip
will also not upgrade it correctly. It is a chicken-and-egg issue)This thread explains it (thanks to this Twitter post):
Also, the Python status page:
Lastly, to avoid other install errors, make sure you also upgrade setuptools after doing the above: