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

Freshly installed mac already seems to have python3 and pip. How do I source it?
Macs used to include python2 by default, under the name "python". They then added python3 under the name "python3". More recently, they stopped including python2, so now there's only python3 and the name "python" doesn't point at anything. Same with pip vs pip3. If you want to use the shorter names, you can make links or aliases. The python interpreter built into macOS is used for some system tasks. You can use it for yourself, but you shouldn't replace any of the pre-installed packages with later versions. If you need/want to have the latest versions, you should either use a virtual environment, or make a separate python install with brew. More on reddit.com
🌐 r/learnpython
9
1
November 16, 2023
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
How do I install pip for Vscode on mac?
No offense, but did you google anything? Also try using pip3 instead of pip in the terminal. I think it depends on your OS or Python version. More on reddit.com
🌐 r/vscode
15
0
October 31, 2023
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
🌐
pip
pip.pypa.io › en › stable › installation
Installation - pip documentation v26.1.2
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.
🌐
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 - Pip is a popular package manager for Python. Follow this step-by-step guide and learn how to install pip on a computer running macOS.
🌐
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.
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.
🌐
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.
🌐
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.
🌐
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....
🌐
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 ...
🌐
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
🌐
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.
🌐
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.
🌐
Groovy Post
groovypost.com › how-to › how to install pip on a mac
How to Install PIP on a Mac
February 5, 2024 - Allow curl time to download the script onto your Mac. Once it’s done, type python3 get-pip.py and press Enter. Allow time for the installation to complete.
🌐
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.
🌐
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.