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 Overflow

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 Overflow
Top answer
1 of 16
3498

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.

2 of 16
795

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
🌐
pip
pip.pypa.io › en › stable › installation
Installation - pip documentation v26.0.1
If you face issues when using Python and pip installed using these mechanisms, it is recommended to request for support from the relevant provider (eg: Linux distro community, cloud provider support channels, etc). ... Windows, Linux and macOS.
Discussions

how to install pip - Apple Community
This is also an very old version ... either. I avoid installing pip or any modules into Apple's Python installations. Note: Apple has indicated that they will remove Python, Ruby, and Perl scripting languages from a future upgrade of macOS.... More on discussions.apple.com
🌐 discussions.apple.com
September 6, 2020
macos - How to install pip for Python 3 on Mac OS X? - Stack Overflow
OS X (Mavericks) has Python 2.7 stock installed. But I do all my own personal Python stuff with 3.3. I just flushed my 3.3.2 install and installed the new 3.3.3. So I need to install pyserial again... More on stackoverflow.com
🌐 stackoverflow.com
pip install not working in mac
Hello, I thought I would try some python on a Mac for fun. Installed 3.9.2 from the python download page. Running pip install pyttsx3 Fails. Anyone know why? Failed at first hurdle with this. :slight_smile: More on community.spiceworks.com
🌐 community.spiceworks.com
6
3
March 27, 2021
Freshly installed mac already seems to have python3 and pip. How do I source it?
% python3 --version Python 3.9.6 I don't see how this response is "weird"; you asked for your version of python3 and you got exactly that. More on reddit.com
🌐 r/learnpython
9
1
November 16, 2023
🌐
Python Packaging
packaging.python.org › tutorials › installing-packages
Installing Packages — Python Packaging User Guide
(Starting in version 10, pip displays a warning when installing any scripts to a directory outside PATH.) If the scripts are not available in your shell after installation, you’ll need to add the directory to your PATH: On Linux and macOS you can find the user base binary directory by running ...
Find elsewhere
🌐
PyPI
pypi.org › project › pip
pip · PyPI
You can use pip to install packages from the Python Package Index and other indexes.
      » pip install pip
    
Published   Feb 05, 2026
Version   26.0.1
🌐
GeeksforGeeks
geeksforgeeks.org › python › how-to-install-pip-in-macos
How To Install PIP in macOS - GeeksforGeeks
July 12, 2025 - If not installed, visit the official website to download and install the Python Latest Version in your macOS. pip can be downloaded and installed using the command line (ensurepip module) by going through the following steps:
🌐
Apple Community
discussions.apple.com › thread › 251767900
how to install pip - Apple Community
September 6, 2020 - This is also an very old version of Python 3. The default Python 2.7.16 installed with Catalina does not have a pip installation either. I avoid installing pip or any modules into Apple's Python installations. Note: Apple has indicated that they will remove Python, Ruby, and Perl scripting languages from a future upgrade of macOS.
🌐
Devcamp
vtm.devcamp.com › full-stack-development-javascript-python › guide › how-to-install-pip-mac-windows-machine
How to Install PIP On a Mac or Windows Machine
Once you have it there all you're going to have to do is open up the terminal and run it like a regular python file. So if I open up the terminal right here all I would have to run is python and then get-pip.py hit return and then it will go and it will install the entire pip library on your system.
🌐
Setapp
setapp.com › how-to › install-pip-on-mac
How to install pip on Mac
February 1, 2024 - Learn the easiest way to install, update, and remove pip, the package management tool for Python libraries, on Mac. Plus, get a few great app suggestions for your workflow.
🌐
GitHub
gist.github.com › haircut › 14705555d58432a5f01f9188006a04ed
How to install and use pip without sudo or admin on macOS · GitHub
How to install and use pip without sudo or admin on macOS - Install PIP to user site on macOS.md
🌐
MacPaw
macpaw.com › how to › optimization › apps
Mac pip install guide: how to install pip 2 different ways
January 31, 2025 - If you plan to use Python on your Mac, you’ll need its package installer, pip. Here’s how to install pip on Mac using Ensurepip or Homebrew.
🌐
Ramotion
ramotion.com › blog › how-to-install-pip
How to Install Pip on Windows, Mac, and Linux | Ramotion Agency
February 24, 2026 - Learn how to install, fix, and verify pip on Windows, macOS, and Linux. A complete beginner-friendly guide to Python’s package manager, common issues, and best practices.
🌐
Spiceworks
community.spiceworks.com › hardware & infrastructure
pip install not working in mac - Hardware & Infrastructure - Spiceworks Community
March 27, 2021 - Hello, I thought I would try some python on a Mac for fun. Installed 3.9.2 from the python download page. Running pip install pyttsx3 Fails. Anyone know why? Failed at first hurdle with this. 🙂
🌐
Matplotlib
matplotlib.org › stable › install › index.html
Installation — Matplotlib 3.10.8 documentation
pip is installed by default with python.org and Homebrew Python, but needs to be manually installed on Macports with
🌐
PhoenixNAP
phoenixnap.com › home › kb › devops and development › how to install pip on mac
How to Install pip on Mac
May 15, 2025 - A system running macOS. Python installed. A user account with administrator-level privileges. The recommended way to install pip on Mac is using Python's ensurepip module.
🌐
Homebrew
docs.brew.sh › Homebrew-and-Python
Python — Homebrew Documentation
It is possible to install some Python packages as formulae by using brew install xyz. We do not recommend using these formulae and instead recommend you install them with pip inside a virtualenv. These system-wide Homebrew Python formulae are often Homebrew-specific formulae that are useful as dependencies for other Homebrew formulae.
🌐
Mac Install Guide
mac.install.guide › python › command-not-found-pip
'zsh: command not found: pip' · Mac Install Guide
May 19, 2024 - In precise terms, this error occurs when the system's shell (zsh or bash) can't find the pip command. Pip is the standard package manager for Python, for installing and managing software packages written in Python. Python automatically includes pip; if Pip is not found, Python is not installed or the Mac $PATH is not set correctly.