How to install Pip on Windows, Mac, and Linux?

First published: | Last updated:

Know how to install and upgrade Pip, the Python package manager, on your Windows, Mac, and Linux operating systems.


What is Pip?

Pip is a Python package manager written in Python and is used to install and manage software packages. The Python software foundation recommends using Pip for installing Python applications and their dependencies during deployment. Pip connects to an online repository of public packages, called the Python Package Index (PyPI).

Prerequisites for Pip

To effectively utilize Pip on your Windows, Mac, or Linux operating system, it is essential that you first have Python installed. Python serves as the programming language that Pip, the package manager, relies on to manage and install software packages and libraries. Without Python, Pip will not function, so make sure to check your system for the correct version of Python before proceeding.

Install Pip

This knowledge base article offers step-by-step instructions for installing Pip, a command-line tool that allows you to install and manage Python software packages on Windows, Mac, or Linux operating systems. After completing the installation, it’s essential to verify the Pip version to confirm that the installation was successful. For more detailed information and comprehensive installation instructions, please refer to the official Pip documentation.

Windows

You can use the following commands to install Pip in the Windows operating system.

# Install Pip.
$ py -m ensurepip --upgrade

# Check Pip version.
$ pip --version

Mac

You can use the following commands to install Pip in the Mac operating system.

# Install Pip.
$ sudo python -m ensurepip --upgrade

# Check Pip version.
$ pip --version

Linux (RPM)

You can use the following commands to install Pip in RPM-based Linux operating systems such as CentOS Linux, Red Hat Linux, Fedora Linux, Amazon Linux, Alma Linux, Rocky Linux, etc., or any other similar equivalents.

# Install Pip.
$ sudo yum install python-pip

# Upgrade Pip.
$ sudo pip install --upgrade pip

# Check Pip version.
$ pip --version

Linux (Debian)

You can use the following commands to install Pip in Debian-based Linux operating systems such as Ubuntu Linux, Mint Linux, Kali Linux, Kubuntu Linux, etc., or any other similar equivalents.

# Install Pip.
$ sudo apt install python3-pip

# Upgrade Pip.
$ sudo pip install --upgrade pip

# Check Pip version.
$ pip --version
Logo of SloopStash organization.

What's next? Let's connect to meet your IT demands.

Products Toolkits Solutions Training


Experience business-class software products, open source toolkits, technology solutions, and training, designed with cybersecurity, automation, and AI in mind.