How do I install pip on macOS or OS X?

The System picture The System · Jun 24, 2013 · Viewed 2.3M times · Source

I spent most of the day yesterday searching for a clear answer for installing pip (package manager for Python). I can't find a good solution.

How do I install it?

Answer

Scott Tesler picture Scott Tesler · Sep 22, 2013

UPDATE (Jan 2019):

easy_install has been deprecated. Please use get-pip.py instead:

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

Old answer:

easy_install pip

If you need admin privileges to run this, try:

sudo easy_install pip