Install Pip on Mac

If you use your Mac for programming, you may encounter problems if pip isn’t installed, as it’s required to work with apps that use the Python language. Although pip is usually installed automatically when you install Python, if programs aren’t working normally, it may be because you don’t have it downloaded on your computer, or because it’s not installed correctly.

 

So, how do you OS X install pip on your Mac? Read on to find it out.

Before we start:

 

Installing pip on your Mac isn’t the only way to ensure a smooth and trouble-free Mac experience. You can also improve the performance of your installed apps by downloading MacKeeper’s Smart Uninstaller. This tool can also help you get rid of memory-draining apps and remove browser extensions and leftover files.

 

How to use MacKeeper’s Smart Uninstaller on your device:

  1. Open MacKeeper on your Mac.
  2. Go to the Cleaning section and select Smart Uninstaller.
  3. Click Start Scan.
  4. Select the categories you want to clean, then click Remove Selected.
  5. Click Remove to confirm.

Now that you’ve got your Mac ready for new programs, our team of experts is here to help you get pip for Mac. Let’s continue.

What is pip on Mac

Pip, also known as pip3, stands for preferred installer program or pip installs packages. This package management system, as the name suggests, is used to install and manage software and libraries, particularly for Python apps. Usually, pip comes pre-installed with Python version 3.4 and later.

 

Additionally, the packages for pip can be found in the Python Package Index, or PyPI, which is the software repository for the Python programming language.

What to do before installing pip on macOS

To install pip on a Mac, you’ll need a running macOS system (take a look at the full list of macOS versions), Python installed on it, and a user account with admin privileges.

 

Before installing pip on macOS, you should:

  1. View your Python version
  2. Check if pip is installed on your Mac

1. View your Python version

To check the version of Python installed on your Mac:

  1. Go to Finder, then click Applications from the left-side bar.
  2. Open the Utilities folder and launch Terminal.
  3. Type the following command (!without the full stop): python --version.
  4. Press the Return key.

If you have Python installed, you’ll see the version there.

To view the Python version installed on your Mac, go to Applications in Finder and open the Utilities folder.
Step 1. Opening the Utilities folder from Applications
To verify if pip is on your Apple computer, launch Terminal from the Utilities folder.
Step 2. Launching Terminal
To check whether you have pip installed on Mac, use the pip --version command and press Return.
Step 3. Using Terminal to find the Python version installed

2. Check if pip is installed on your Mac

To verify if pip is already installed on your Mac:

  1. Go to Finder and select the Applications folder on your left.
  2. Double-click on the Utilities folder, then launch Terminal.
  3. Type the following command (!without the full stop): pip --version.
  4. Press the Return key.

If you get a positive result, it means pip is installed.

To check if pip is installed on your Mac, open Finder, select Applications and open the Utilities folder.
Step 1. Opening the Utilities folder from Applications
To verify if pip is on your Apple computer, launch Terminal from the Utilities folder.
Step 2. Launching Terminal
To check whether you have pip installed on Mac, use the pip --version command and press Return.
Step 3. Using Terminal to find if pip is installed

How to install pip on Mac

Once all the checks are complete, and if you’ve confirmed that pip is actually not installed on your computer, the next step is to download pip on Mac. You have several options at your fingertips to do this:

  1. Via ensurepip
  2. Using Homebrew
  3. With get-pip.py

1. Via ensurepip

Although we believe it’s the best way to download pip on a Mac, we recommend that you check the following pros and cons before you decide on this method:

ProsCons

Simple and straightforward method to install pip on Mac

 

You don’t need external commands

 

No need of an Internet connection either

Only available for Python 3.4. or later

 

 

If you end up choosing the ensurepip route to install pip on Mac, follow these steps:

  1. Open Finder on your Mac and select Applications.
  2. Open Utilities, then launch Terminal.
  3. Type the following command (!without the full stop): python -m ensurepip.
  4. Press the Return key.
To install pip via ensurepip on your Mac, open Finder, select Applications and open Utilities.
Step 1. Opening Utilities from the Applications folder
To install ensurepip on your Mac or MacBook, launch Terminal from Utilities.
Step 2. Launching Terminal
To finalize the installation of ensurepip on Mac, use the python -m ensurepip command and press Return.
Step 3. Using Terminal to install ensurepip on Mac

2. Using Homebrew

Alternatively, you can opt for the Homebrew package manager, which also has its own advantages and disadvantages:

ProsCons

Very popular and reliable package manager

 

Also used to install apps that don’t include their own installer

 

Supports other programming languages other than Python

Not as straightforward and quick as ensurepip

 

 

Do you like what Homebrew has to offer? First, you’ll need to install Homebrew on your Mac:

  1. Launch Finder and choose the Applications folder on your left.
  2. Launch the Utilities folders, then double-click on Terminal.
  3. Copy and paste the following command: /bin/bash -c “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)”
  4. Press Return, and press Return again after a list of folders appears.
  5. If prompted, type in your admin password.
  6. You should see a message stating the installation’s been successful.
To install Homebrew on your Mac, open Finder, select Applications and open Utilities.
Step 1. Launching Utilities from the Applications folder in Finder
To install Homebrew on your Mac or MacBook, launch Terminal from Utilities.
Step 2. Launching Terminal
To finalize the installation of Homebrew on Mac, use the /bin/bash -c $(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh) command and press Return twice.
Step 3. Typing the right command and pressing Return

Now, it’s time to install pip:

  1. Go to Terminal again.
  2. Type the following command (!without the full stop): brew install python.
  3. Press Return.
  4. Once the installation is complete, type (!without the full stop): brew unlink python && brew link python.
  5. Press Return.
To install pip via Homebrew, type brew install python in Terminal and press Return.
Step 1. Typing “brew install python” in Terminal and pressing Return
To finalize the installation of pip via Homebrew, type brew unlink python && brew link python in Terminal and press Return.
Step 2. Typing “brew unlink python && brew link python” in Terminal and pressing Return

3. With get-pip.py

If none of the methods above are right for you, we suggest you trying a third option, get-pip.py, although you might want to check the pros and cons first as it’s not the most recommended method.

ProsCons

Automatically downloads and installs the latest pip package for Python

 

Easy installation process

Only compatible with Python3 or later versions

 

A risky method as it uses an online script

If you opt for this online script, follow these simple instructions:

  1. Launch Finder on your Apple computer.
  2. Select Applications from the left-side bar.
  3. Open the Utilities folder, find Terminal and launch it.
  4. Type the following command (!without the full stop): curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py.
  5. Press the Return key.
  6. Once the script has loaded, type this (!without the full stop): python3 get-pip.py.
  7. Press Return.
To install get-pip.py on your Mac, open Finder, select Applications and open Utilities.
Step 1. Launching Applications and opening the Utilities folder
To install get-pip.py on your Mac or MacBook, launch Terminal from Utilities.
Step 2. Launching Terminal
To continue with the installation of get-pip.py on Mac, use the curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py command and press Return.
Step 3. Using Terminal to install get-pip.py on Mac with the “curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py” command
To finalize the installation of get-pip.py on Mac, use the python3 get-pip.py command and press Return.
Step 4. Typing the “python3 get-pip.py” command and pressing Return

How to verify pip installation on MacBook

Verifying if the pip installation on your MacBook was done correctly goes like this:

  1. Launch Terminal by going to Finder > Applications > Utilities.
  2. Type this command (!without the full stop): python3 -m pip --version.
  3. Press Return.
To verify the pip installation on your Mac, launch Finder, select Applications and open Utilities.
Step 1. Launching Finder, clicking on Applications and opening Utilities
To verify if pip was installed correctly on your Mac or MacBook, launch Terminal.
Step 2. Launching Terminal
To finalize with the installation verification of pip on Mac, use the python3 -m pip --version command and press Return.
Step 3. Typing the “python3 -m pip --version” command in Terminal

Hint from our team: 

 

If you encounter any issues when executing a command on your Mac, follow our team of experts’ advice on permissions denied in Zsh.

How to upgrade pip on Mac via Terminal

Follow these steps to update pip on macOS:

  1. Open Terminal by going to Finder > Applications > Utilities.
  2. Type this command (!without the full stop): python3 -m pip install --upgrade pip.
  3. Press Return.
To update pip on your Mac, open Finder, select Applications and click on Utilities.
Step 1. Opening Finder, selecting Applications, and clicking on Utilities
To upgrade pip on MacBook, launch Terminal.
Step 2. Launching Terminal
To finalize the pip update on Mac, use the python3 -m pip install --upgrade pip command and press Return.
Step 3. Typing the “python3 -m pip install --upgrade pip” command in Terminal

How to remove any previous installation of pip (if necessary)

If you wish to remove Python from Mac, use another pip installation method or fix any error. Do the folliowing to uninstall pip:

  1. Launch Finder on your Mac or MacBook.
  2. Choose Applications from the left-side bar, then open the Utilities folder.
  3. Find Terminal in the Utilities folder and launch it.
  4. Type the following command (!without the full stop): pip uninstall pip.
  5. Press Return.
  6. Confirm by typing Y.
  7. Press Return.
To remove pip on Mac, launch Finder, select Applications and open Utilities.
Step 1. Opening Finder, selecting Applications and clicking on Utilities
To uninstall pip on MacBook, launch Terminal.
Step 2. Launching Terminal
To finalize the uninstallation of pip on Mac, type this command: pip uninstall pip.
Step 3. Using the “pip uninstall pip” command to uninstall pip

Important: 

 

Meanwhile, to gain even more valuable space on your MacBook, check our other relevant article to uninstall Anaconda from Mac if you have any issues with its performance.

Best way to install pip on macOS

Are you looking to use pip install on Mac? There are various methods to install pip on macOS, each with its own advantages and disadvantages. However, our team of experts recommends using ensurepip, as it’s a simple and easy method that doesn’t require an Internet connection and is compatible with many Python versions.

 

Regardless of the method you choose, you should always prepare your computer before downloading and installing a new program on Mac. You can use a tool like MacKeeper’s Smart Uninstaller to ensure that the installation process doesn’t impact negatively your Mac’s performance. Try this:

  1. Launch the MacKeeper app on your device.
  2. Choose the Smart Uninstaller tab under the Cleaning section on the left-side menu.
  3. Click the Start Scan button.
  4. Then, select the categories you want to do a smart cleaning and click Remove Selected.
  5. Wait until the scan is complete.
  6. Click Remove to confirm.
To use Smart Uninstaller, launch MacKeeper, select Smart Uninstaller and hit the Start Scan button.
Step 1. Launching MacKeeper, selecting Smart Uninstaller and clicking Start Scan
While you've opened MacKeeper's Smart Uninstaller, select the categories you want to clean and click Remove Selected.
Start 2. Selecting the categories and clicking Remove Selected
To complete the file removal with MacKeeper's Smart Uninstaller, wait until the scan is done.
Start 3. Waiting until the scan is complete
Use your Mac to the fullest! Sign up and get:
Effective tips on how to fix Mac issues
Reliable advice on how to stay safe online
Mac-world news and updates

Thank you!

You’ll love exploring your Mac with us.

Oops, something went wrong.

Try again or reload a page.

Here’s another sign you need to upgrade your macOS ASAP:

30% off your MacKeeper subscription

Сopy the code now and use it in the MacKeeper checkout after the upgrade.

Copy Code

Please be aware that this code cannot be combined with any other discounts, offers, or promotions.

Contents

Unlocked
PC

MacKeeper - your all-in-one solution for more space and maximum security.

Try Now

Read more

Control Center on Mac
Control Center on Mac
How to Copy and Paste on Mac
How to Copy and Paste on Mac
arrow

Run Application

step_1

Click Continue

step_2

Click Install

step_1

Your macOS version is lower than OS 10.11. We’d like to offer you MacKeeper 4 to solve the cleaning, privacy, and security issues of your macOS.