How to install Python Pip on CentOS 7

Introduction – Pip (Python Pip)

Pip is a very powerful python package management system used to install and manage software packages written in the Python programming language.

In Our previous articles, we discussed How to install and create python virtualenv on CentOS. In this tutorial, We’ll show you How to install Pip on CentOS 7. Installing Pip on CentOS 7 is really an easy task, just follow the steps bellow carefully.

 

1. Install Pip on CentOS 7

Pip is part of Extra Packages for Enterprise Linux (EPEL), which is a community repository of non-standard packages for the RHEL distribution. First, we’ll install the EPEL repository on CentOS 7.

[ansible@localhost ~]$ sudo yum install epel-release

To install pip use the following command:

[ansible@localhost ~]$ sudo yum install python-pip

 

2. Verify Pip installation on CentOS 7

To verify that the installation was successful you can use the following command:

[ansible@localhost ~]$ pip -V
pip 8.1.2 from /usr/lib/python2.7/site-packages (python 2.7)

 

3. How to use pip on CentOS 7

To search PyPI for specific package you can use the following command:

[ansible@localhost ~]$ pip search package_name

 

4. Install package using pip on CentOS 7

Once you are ready to install specific package you can use the following command:

[ansible@localhost ~]$ pip install package_name

 

5. Uninstall package using pip on CentOS 7

Similarly, if you want to uninstall a specific package you can use the following command:

[ansible@localhost ~]$ pip uninstall package_name

 

Avinash Pawar

DevOps Practitioner interested in learning new technologies and interested in sharing the knowledge with others.

More Posts - Website

Follow Me:
TwitterFacebookLinkedInGoogle Plus

Avinash Pawar

DevOps Practitioner interested in learning new technologies and interested in sharing the knowledge with others.

Leave a Reply