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 do I install Pip to Mac?
You don't need to install pip, it comes with all recent versions of Python. (But the $ in those instructions should not be typed, it's showing you that you enter the command and the prompt.) More on reddit.com
🌐 r/learnpython
27
3
June 30, 2024
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
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
🌐
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:
🌐
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
🌐
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.
🌐
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.
🌐
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.
🌐
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.
🌐
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.
🌐
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.
🌐
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
🌐
bodHOST
bodhost.com › general discussion › how to set up pip on your macos system
How to Set Up PIP on Your MacOS System - bodHOST
August 28, 2024 - 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.
🌐
eUKhost
eukhost.com › home › how to install pip on macos
How to install PIP on macOS - eukhost
December 20, 2024 - This tutorial is specifically for macOS users and assumes you have a basic understanding of using the Terminal. Note:- Before you install PIP, make sure you have Python on your system. PIP comes automatically with Python version 3.4.
🌐
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.
🌐
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.
🌐
Mac Install Guide
mac.install.guide › python › pip-install
Install Python Packages · Mac Install Guide
How to install Python packages on Mac. Correct use of 'pip install'. Errors with Pip. Comparing Pip, Pipx, and alternatives.