Open In App
Related Articles

How to install pip in macOS ?

Improve Article
Save Article
Like Article

Before we start with how to install pip for Python on macOS, let’s first go through the basic introduction to Python. 

Python is a widely-used general-purpose, high-level programming language. Python is a programming language that lets you work quickly and integrate systems more efficiently. PIP is a package management system used to install and manage software packages/libraries written in Python. These files are stored in a large “on-line repository” termed as Python Package Index (PyPI). pip uses PyPI as the default source for packages and their dependencies. In this article, we will see How to Install PIP on a Mac. Using pip you can install any package using the following syntax:

Syntax of pip

pip install package_name

Download and Install Pip on macOS

pip can be downloaded and installed usingthe  command line by going through the following steps:

Step 1: Download the file and store it in the same directory as python is installed. or Use the following command to download pip directly

curl -o

Step 2: Now execute the downloaded file using the below command


Step 3:  Wait through the installation process. 


Voila! pip is now installed on your system.

Verification of the Installation process

One can easily verify if the pip has been installed correctly by performing a version check on the same. Just go to the command line and execute the following command:

pip3 --version
pip --version


How to Update PIP on a Mac

You can use the following command in your terminal to upgrade your pip. 

python3 -m pip install –upgrade pip

How to install a specific version of pip

To install a specific version you can enter the following version number to install the specific version.

pip install --upgrade pip==1.2.1

How to uninstall any previous installation of pip

You can use one of the commands to uninstall the pip command based on your system.

pip uninstall pip
sudo apt-get remove python-pip
Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!

Last Updated : 01 Jul, 2022
Like Article
Save Article
Similar Reads
Related Tutorials