Install PIP3 or PIP2 on RHEL / CentOS 8
In this short topic, I’ll show how to install PIP on RHEL or CentOS 8 server.
Table of Contents
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 pip3 search PACKAGE/KEYWORD # python 2 pip2 search PACKAGE/KEYWORD
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:
The article is over. Thanks for reading. ?
# python 3 sudo dnf remove python3-pip # python 2 sudo dnf remove python2-pip
Preview may take a few seconds to load.
Below you will find some common used markdown syntax. For a deeper dive in Markdown check out this Cheat Sheet
Bold & Italic
Bold **double asterisks**
Three back ticks and then enter your code blocks here.
# This is a Heading 1
## This is a Heading 2
### This is a Heading 3
> type a greater than sign and start typing your quote.
You can add links by adding text inside of  and the link inside of (), like so:
To add a numbered list you can simply start with a number and a ., like so:
1. The first item in my list
For an unordered list, you can add a dash -, like so:
- The start of my list
You can add images by selecting the image icon, which will upload and add an image to the editor, or you can manually add the image by adding an exclamation !, followed by the alt text inside of , and the image URL inside of (), like so:
To add a divider you can add three dashes or three asterisks:
--- or ***