How to install pip on Mac

In this tutorial, I will show you 2 terminal commands, and using those commands, you can easily install pip on your Mac device.

If you have not installed pip properly you may get an error like this: 'pip' is not recognized as an internal or external command

Step 1: Open your mac terminal and run this command

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

install pip on mac

Or you can manually save it by opening this URL: https://bootstrap.pypa.io/get-pip.py (Not recommended)

When it opens right click anywhere and save it to the same directory where you have installed your Python.

If you are confused about saving this, then just use the first command in the terminal. Believe me, that will be the easiest way as it will save it for you automatically in the exact directory.

Step 2: Install pip on your Mac

python3 get-pip.py

installing pip on mac

Now just paste the above command into your terminal and hit enter.

It will install the PIP on your machine.

(If your device already has pip then it will uninstall the existing pip and install this new one)

Check the pip version on your mac (Just for verification)

If you want to check if pip has been installed or not, use the below command:

pip --version

Output:

Check pip version on your Mac

Leave a Reply

Your email address will not be published. Required fields are marked *