Installing Python and pip in Ubuntu - jordy33/turbogears_tutorial GitHub Wiki

How to install python:

First, install some dependencies:

sudo apt-get install build-essential checkinstall
sudo apt-get install libreadline-gplv2-dev libncursesw5-dev
sudo apt-get install libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev

Then download using the following command:

cd ~/Downloads/

wget https://www.python.org/ftp/python/2.7.12/Python-2.7.12.tgz

Extract and go to the directory:

tar -xvf Python-2.7.12.tgz cd Python-2.7.12

Now, install using the command you just tried:

./configure make sudo checkinstall

Install pip with the following command:

sudo apt-get install python-pip

[Back]