Install PIP3 or PIP2 on RHEL / CentOS 8

Published on January 21, 2020 33 sec read

In this short topic, I’ll show how to install PIP on RHEL or CentOS 8 server.

Table of Contents

  1. Install PIP
  2. Search and Install Package
  3. Uninstall Package and PIP

Step 1 : Install PIP

We can install PIP based on Python version:

# python 3
sudo dnf install python3-pip

# python 2
sudo dnf install python2-pip

Check the version to confirm:

# python 3
pip3 --version

# python 2
pip2 --version

Step 2 : Search and Install Package

By this way, we can search for any package

# python 3

# python 2

And we can easily install package using PIP like:

# python 3
pip3 install PACKAGE_NAME

# python 2
pip2 install PACKAGE_NAME

Step 3 : Uninstall Package and PIP

To uninstall a package, just run this command:

# python 3
pip3 uninstall PACKAGE_NAME

# python 2
pip2 uninstall PACKAGE_NAME

To remove PIP from the server, we need to run the following command:

# python 3
sudo dnf remove python3-pip

# python 2
sudo dnf remove python2-pip
The article is over. Thanks for reading. 🙂


Hey, I'm Md Obydullah. I build open-source projects and write on Laravel, Linux server, modern JavaScript and more on web development.


Leave a Reply

Your email address will not be published. Required fields are marked *