Most recently tested on macOS Sierra (10.12.6)
- Download the installation script;
curl https://bootstrap.pypa.io/get-pip.py -o ~/Downloads/get-pip.py - Run the installation, appending the
--userflag;python ~/Downloads/get-pip.py --user. pip will be installed to ~/Library/Python/2.7/bin/pip - Make sure
~/Library/Python/2.7/binis in your$PATH. Forbashusers, edit thePATH=line in~/.bashrcto append the local Python path; ie.PATH=$PATH:~/Library/Python/2.7/bin. Apply the changes,source ~/.bashrc. - Use pip! Remember to append
--userwhen installing modules; ie.pip install <package_name> --user
There is much discussion about making the user site the default for installation. See Issue 1668.