Install Python pip on RHEL/Centos 7

When you initially try to install pip you may get an error as below:

# python –version
Python 2.7.5

[root]# yum install python-pip

No package python-pip available.
Error: Nothing to do

We need to install epel-release first:

[root] # yum install epel-release

Installed:
epel-release.noarch 0:7-11

Next install pip:

[root]# yum install python-pip

Installed:
python2-pip.noarch 0:8.1.2-10.el7

# pip –version

pip 8.1.2 from /usr/lib/python2.7/site-packages (python 2.7)

REFERENCE:

https://sharadchhetri.com/2014/05/30/install-pip-centos-rhel-ubuntu-debian/

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.