How to Install Pip on CentOS 8

 

 

 

Pip is a Python package manager. That means it provides a mechanism for installing and managing libraries and dependencies not included in the standard library.

 

 

 

 

In this tutorial, we will show you how to install Pip for Python 2 and Python 3 on CentOS 8.

 

 

 

Let’s start,

 

 

 

 

Installing Pip for Python 3

 

 

 

 

Currently, Python 3 is the most recent, most stable, and longest-supportable version of Python.

 

 

 

 

 

Step 1: Update System Repositories

 

 

sudo yum update

 

 

Step 2: Install Python 3


 

sudo yum –y install python3

 


Step 3: Install Pip for Python 3

 


sudo yum –y install python3-pip

 

 

 

It is possible to check an application’s version number in order to determine whether it is installed. You can do so by entering:

 


pip3 –V



Your Python version should now be displayed.






Installing Pip for Python 2




Installing multiple versions of Python simultaneously is possible in CentOS 8. A Python 2 installation can run simultaneously with a Python 3 installation.






Step 1: Update Repositories



sudo yum update




Step 2: Install Pip 2



sudo yum –y install python2-pip



It is possible to check an application’s version number in order to determine whether it is installed. You can do so by entering:



pip2 –V



Pip2’s version should be displayed on the system. You have now installed the PIP successfully on CentOS 8.



 



Try VPSie for free today!

 

 

 

Get the most out of learning with VPSie.com