How to install pip and easy_install on CentOS

It was simple. The path of pip is:

/opt/python2.7/bin/pip

If it's not there then install using:

/opt/python2.7/bin/easy_install pip

and it will install it.


Following the pip installer documentation, one can simply issue the following:

# install setup tools
curl https://bitbucket.org/pypa/setuptools/downloads/ez_setup.py | python -
# install pip
curl https://bootstrap.pypa.io/get-pip.py | python -

I couldnt follow from previous answers to get easy_install. I followed the other commands to install pip. (requires sudo privileges)

to install easy_install:

sudo yum install python-setuptools python-setuptools-devel

to install pip:

sudo easy_install pip

Tags:

Python

Centos

Pip