How to install Pip on Linux?

First published: Sunday, August 18, 2024 | Last updated: Sunday, August 18, 2024

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


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.

Install Pip

Pip, the package installer for Python, can be installed on major Linux-based operating systems as an RPM or Debian package. After a successful installation of Pip, it is important to verify the installation by checking the version of Pip that has been installed. For more in-depth information and detailed installation instructions, please refer to the official Pip documentation.

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 python-pip

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

# Check Pip version.
$ pip --version

Logo of SloopStash organization.

Interested in our products, open source works, training, or solutions?

Just send us a message, we're here to support you. Feel free to reach out anytime for assistance.


Contact us