On Linux or MacOS:
python -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:
python -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:
python -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
how to install pip - Apple Community
macos - How to install pip for Python 3 on Mac OS X? - Stack Overflow
pip install not working in mac
Freshly installed mac already seems to have python3 and pip. How do I source it?
Videos
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?
» pip install pip
UPDATE: This is no longer necessary as of Python3.4. pip3 is installed as part of the general Python3 installation.
I ended up posting this same question on the python mailing list, and got the following answer:
# download and install setuptools
curl -O https://bootstrap.pypa.io/ez_setup.py
python3 ez_setup.py
# download and install pip
curl -O https://bootstrap.pypa.io/get-pip.py
python3 get-pip.py
Which solved my question perfectly. After adding the following for my own:
cd /usr/local/bin
ln -s ../../../Library/Frameworks/Python.framework/Versions/3.3/bin/pip pip
So that I could run pip directly, I was able to:
# use pip to install
pip install pyserial
or:
# Don't want it?
pip uninstall pyserial
I had to go through this process myself and chose a different way that I think is better in the long run.
I installed homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
then:
brew doctor
The last step gives you some warnings and errors that you have to resolve. One of those will be to download and install the Mac OS X command-line tools.
then:
brew install python3
This gave me python3 and pip3 in my path.
pieter$ which pip3 python3
/usr/local/bin/pip3
/usr/local/bin/python3
I am really sorry for this question
I just recognized that i have to type pip3
The error message WARNING: The scripts pip, pip3 and pip3.9 are installed in '/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/bin' which is not on PATH. Consider adding this directory to PATH tells you all you need to know about the issue and solution.
You need to modify your $PATH variable as following:
export PATH=$PATH:/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/bin
You can find information about making the change permanent here