Installing pip on macOS

Written on September 23, 2016

With a fresh install of macOS, it comes with a version of Python, but it doesn’t come with Python’s package manager, pip.

If you need to use pip, it is fairly easy to install.

First you’ll want to install the command-line tools by either installing Xcode or running this command from Terminal:

$ xcode-select --install

Once the command-line tools are installed, you’ll run this command:

$ sudo easy_install pip

Installation should be fairly quick. Afterwards running pip -V should return something like:

$ pip -V
pip 8.1.2

Stay in touch

Thanks for reading this article. I'd love to stay in touch and share more tips on programming and side projects with you. Sign up and I'll send you my articles straight to your email, you'll also get a free copy of the light themed version of my Git cheat sheet.
Git cheat sheet preview image