Last Updated : 12 Jul, 2025
PIP is a standard package manager for Python Programming Language that enables users to install and manage additional libraries and dependencies not included in the standard Python library. These files are stored in a large "on-line repository" termed as Python Package Index (PyPI). pip uses PyPI as the default source for pip package manager and their dependencies. In this article, we will see How to Install PIP on a Mac and by using pip you can install any package.
Prerequisites:Verify the Python Installation
- macOS - Ventura or above
- Python - v 3.1 or above
- Admin Rights
The first step is to verify the Python in your macOS, below are the steps to perform this action:
Step 1: Open mac TerminalAccess to the Terminal via Applications > Utilities > Terminal
Terminal Step 2: Check Python versionType the following command and hit the Enter button:
python3 --version
pip can be downloaded and installed using the command line (ensurepip module) by going through the following steps:
Step 1: Run the CommandNote: Python 3.4 or later versions include the ensurepip module, this can help during PIP installation.
Open the terminal and type the following command:
python3 -m ensurepip --upgrade
Note: Running this command will install or upgrade PIP in your macOS.
Alternatively, you can download and install pip using the get-pip.py script. Here's what you need to do:
Step 2: Download the ScriptDownload the get-pip.py (https://bootstrap.pypa.io/get-pip.py) file and store it in the same directory as python is installed or use the following command to download pip directly:
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.pyStep 3: Run the Script
Now execute the downloaded file using the below command
python3 get-pip.pyStep 4: Complete the PIP Installation process
Wait until the installation process gets completed:
PIP Installation Verify PIP InstallationOne 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 --versionVerify PIP version Update PIP on a Mac
You can use the following command in your terminal to upgrade your pip:
python3 -m pip install –upgrade pipInstall Any 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.1Command 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-pipConclusion
By following the above guide, you can easily download, install, verify, update (even for any specific version) of PIP in MacOS. Whether you're a beginner, or an expert developer, PIP is an essential tool for every Python project. Using PIP, you can easily manage libraries and integrating in your workflow will ensure that you are handling your Python Projects seamlessly with the help of some of the most popular tools like Pandas and NumPy for data analysis and TensorFlow and Scikit-Learn for Machine Learning.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4