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

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.

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
Discussions

Confused about installing python packages on Mac
What Python version manager are you using? If you're using system or brew, you shouldn't be. Use asdf, uv, or pyenv. System and brew are broken nightmares when it comes to versioning and using them for projects. Also, I'd argue that yes, you should venv every project. More on reddit.com
🌐 r/learnpython
19
3
December 16, 2024
Why am I getting errors when installing pip on Mac
There is no need to install pip. It has been induced in all versions of Python for years. Your error indicates that you are using Python 3.13, which is the latest version and definitely includes pip already. More on reddit.com
🌐 r/learnpython
9
2
June 24, 2025
How SHOULD you install Python on Mac OS?
I use brew to install ‘pyenv’ and ‘pipenv’. From there I use pyenv to manage the Python version and pipenv for packages and virtual environments. On top of all that, I have OhMyZsh integration that automatically runs ‘pipenv shell’ when I enter a directory with a pipenv virtual environment defined. Works very nicely and integrates well with VS Code, too. Addendum: By doing it this way, I don’t ever touch the system Python installed by Apple. A lot less complications that way. More on reddit.com
🌐 r/learnpython
67
48
April 18, 2025
Brew vs pip3: What should I use to install python packages?
Well, tkinter depends on tcl/tk which is a non-Python system dependency, so that's probably what you installed since the Brew distribution of Python does not bundle it by default (like the official Python.org installer does). So that's probably fine. But in general, you should be using pip to install packages for 99% of your Python use cases. Ideally, use a virtualenv for each of your projects; that lets you install different [versions of] packages in each of your projects without interfering with one another. Occasionally, you may also need external dependencies installed on your system, which may mean installing brew packages or something else. For example if a package depends on you having ffmpeg installed to work, it's almost certainly not going to install ffmpeg for you, so you'd have to install it some other way. More on reddit.com
🌐 r/learnpython
9
1
August 13, 2024
🌐
pip
pip.pypa.io › en › stable › installation
Installation - pip documentation v26.1.2
We test that pip runs correctly in this form, but it is possible that there could be issues in some situations. We will accept bug reports in such cases, but for now the zip application should not be used in production environments. In addition to installing pip in your environment, pip is available as a standalone zip application.
🌐
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:
🌐
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.
🌐
PhoenixNAP
phoenixnap.com › home › kb › devops and development › how to install pip on mac
How to Install Pip on Mac {3 Methods}
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.
Find elsewhere
🌐
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.
🌐
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.
🌐
XDA Developers
xda-developers.com › home › mac › how to install pip on mac
How to install Pip on Mac
December 6, 2023 - If Terminal displays a message stating that Python hasn't been found on your Mac, it must be manually installed before Pip. To do so, navigate to the official Python website, then download and install the package targeting macOS.
🌐
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 ...
🌐
Wikihow
wikihow.com › computers and electronics › software › programming › python › how to install pip on mac: easy step-by-step guide
How to Install Pip on Mac: Easy Step-by-Step Guide
December 11, 2025 - Open a Terminal window. If you haven't done so, you can open a Terminal from the Launchpad. The Ensurepip Python module is the most straightforward way to install Pip on both macOS and Linux.
🌐
Mac Install Guide
mac.install.guide › python › install-pip
Python Install Pip · Python Package Manager · Mac Install Guide
March 24, 2024 - How to use Pip on Mac to install Python packages for programs, scripts, and utilities. Comparing Pip, Pipx and alternatives.
🌐
bodHOST
bodhost.com › general discussion › how to set up pip on your macos system
How to Set Up PIP on Your MacOS System - bodHOST
February 26, 2026 - In this article, we will guide you through the macOS installation of PIP, the Python Package Installer. PIP is a crucial tool for Python developers since it makes managing and installing Python packages easier.
🌐
MacKeeper
mackeeper.com › blog › mac tutorials › install pip on mac
Install Pip on Mac: How to Download & Run Installation on macOS?
January 27, 2026 - If you encounter any issues when ... > Applications > Utilities. Type this command (!without the full stop): python3 -m pip install --upgrade pip....
🌐
Machine Learning Plus
machinelearningplus.com › blog › install pip mac – how to install pip in macos?: a comprehensive guide
install pip mac - How to install pip in MacOS?: A Comprehensive Guide | MLPlus
March 24, 2023 - a. Install easy_install (if not already installed): ... The above call will directly pipe get-pip.py as an argument to python command and get ‘pip’ installed. The get-pip.py file will not be created.
🌐
HOSTLINE
hostline.io › home › how to install pip on mac: step by step guide
How to install PIP on Mac: Step by Step Guide - HOSTLINE
July 10, 2025 - Another method of how to install PIP on Mac terminal is by using the get-pip.py script. This method is suitable for users who prefer a direct installation approach. It automatically downloads and installs the current pip package for Python.
🌐
Groovy Post
groovypost.com › how-to › how to install pip on a mac
How to Install PIP on a Mac
February 5, 2024 - Open the Mac Terminal app via the Launchpad. In the Terminal, type python -m ensurepip or python3 -m ensurepip and press Enter. If PIP is missing, ensurepip will install PIP.
🌐
Medium
medium.com › @Mbabakr › how-to-install-pip-in-python-on-mac-pip-install-python-ff2cded061dd
How To Install PIP In Python On Mac | by Mohammed Babakr | Medium
March 18, 2024 - 5. Create a Python virtual environment using Python 3.9 (e.g., “Python 3.9 -m venv PipPython”). 6. Check visually in the Downloads directory for the created folder named “PipPython.” 7. Navigate to the newly created folder by typing “cd PipPython” in Terminal. 8. Upgrade pip to the latest version by typing “pip3 install — upgrade pip” in Terminal.
🌐
Better Stack
betterstack.com › community › questions › how-to-install-pip-on-mac
How Do I Install Pip on Macos or OS X? | Better Stack Community
June 19, 2024 - On macOS or OS X, pip is typically installed alongside Python. If you've installed Python using the official installer from python.org or via Homebrew, pip should already be available.