On Linux or MacOS:
Copypython -m ensurepip --upgrade
If you want to install pip for Python 3, replace python with python3.
See https://pip.pypa.io/en/stable/installation/ for more details.
Answer from Scott Tesler on Stack OverflowOn Linux or MacOS:
Copypython -m ensurepip --upgrade
If you want to install pip for Python 3, replace python with python3.
See https://pip.pypa.io/en/stable/installation/ for more details.
⚡️ TL;DR — One-line solution.
Run the following command for Python v2.7 (default on Mac as of 2021)
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py | python
Run the following command for Python v3
curl https://bootstrap.pypa.io/get-pip.py | python
Or the following if you have it installed as Python 3
curl https://bootstrap.pypa.io/get-pip.py | python3
Another GIF image you said? Here you go!

The following used to work in 2019 and before
All you had to do was:
sudo easy_install pip
2019: ⚠️easy_install has been deprecated. Check Method #2 below for the preferred installation!
Details:
⚡️ OK, I read the solutions given above, but here's an easy solution to install
pip.
The macOS comes with the Python environment 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. This also means that you already have access to easy_install considering you are using macOS or OS X.
ℹ️ Now, 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.
P.S. I ended up blogging a post about it. QuickTip: How Do I Install pip on macOS or OS X?
✅ Method #2: Two line solution
easy_install has been deprecated. Please use get-pip.py instead.
Download and install PIP
curl https://bootstrap.pypa.io/get-pip.py | python
I'm brand new to Python and I'm trying to install pip to Python on my Mac. I did try to check if it was already there but the methods I used didn't work so far.
I have gone through a bunch of different tutorials but they don't work.
I've tried using what this website tells me: https://github.com/pypa/get-pip?tab=readme-ov-file
But Python keeps saying "SyntaxError" at $ and https
Can someone help me?