Installing pip on Ubuntu using Apt-get is simple. Just open up terminal and run the commands below. This should work on Ubuntu 10, 11, and 12 as well.

$ sudo apt-get install python-pip python-dev build-essential 
$ sudo pip install --upgrade pip 
$ sudo pip install --upgrade virtualenv