Installing Pip in Ubuntu 14.04

Posted: April 13, 2016 in Uncategorized

For installing python releated packages we need to use pip. Hence installing pip in our server is our first task.

the package name for pip is “python-pip”. Hence the straight forward approach to install pip would be

apt-get install python-pip

But, if the source list is not updated properly , we will end up with older version of pip (in my case i got 1.5.3 however, 8.1.1 is the latest one). Hence to avoid this issue , we need to follow the approach given in wikipedia

i.e  to download the package from internet via this url . Hence we use the curl command

curl https://bootstrap.pypa.io/get-pip.py

Once get-pip.py gets downloaded. run the python file to install pip

python get-pip.py

Even beyond this, if we need to install pip package without internet .

Download the source from https://pypi.python.org/pypi/pip

wget https://pypi.python.org/pypi?:action=show_md5&digest=6b86f11841e89c8241d689956ba99ed7

extract the folder

tar -xvzf pip-8.1.1.tar.gz

Move inside the folder and install it

cd pip-8.1.1; python setup.py install

Advertisements

Comments are closed.