How to install pip and easy_install on CentOS

Solution 1:

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.

Solution 2:

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 -