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? 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 | python

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

Official release notes:


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

## Download the get pip script
$ curl -o
## Switch to root user
$ sudo su
## Run the script as root
# ./
## Switch back to regular user and install modules with pip
# exit
$ pip install requests –user
$ pip install python-dotenv –user

view raw


hosted with ❤ by GitHub


Leave a Reply

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

You are commenting using your 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 )

Connecting to %s