Install pip on macOS or OS X
MacOS comes with Python installed. But to make sure that you have Python installed open the terminal and run the following command.
python --version
If this command returns a version number that means Python exists.
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py
ℹ All you have to do is run the following command.
sudo easy_install pip
After that pip will be installed and you’ll be able to use it for installing other packages.