The simplest solution is to follow the installation instruction from pip's home site.
Basically, this consists in:
- downloading get-pip.py. Be sure to do this by following a trusted link since you will have to run the script as root.
- call
sudo python get-pip.py
The main advantage of that solution is that it install pip for the python version that has been used to run get-pip.py
, which means that if you use the default OS X installation of python to run get-pip.py
you will install pip for the python install from the system.
Most solutions that use a package manager (homebrew or macport) on OS X create a redundant installation of python in the environment of the package manager which can create inconsistencies in your system since, depending on what you are doing, you may call one installation of python instead of another.