Installing PIP on MacOS 10.12 and above

So in the old days installing pip on MacOS was relatively easy.

You simply had to do:

sudo easy_install pip

Unfortunately, as of April 11th 2018 this will no longer work.

Why?

Python.org sites are stopping support for TLS versions 1.0 and 1.1. This means that MacOS 10.12 or older will not be able to use the easy_install pip method described above.

The solution is to upgrade to the latest version of pip which will allow it to connect to the Python Package Index using TLS 1.2

To do this, we can run the following command.

curl https://bootstrap.pypa.io/get-pip.py | python

Pip 9.0.3 supports TLSv1.2 when running under system Python on macOS < 10.13.

Official release notes: https://pip.pypa.io/en/stable/news/

 

Here is a gist of the commands I use to install two of my favourite python modules with Pip on a fresh MacOS 10.12 + install

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s