Install pip and virtualenv for Ubuntu 10.10 Maverick and newer
sudo apt-get install python-pip python-dev build-essential
sudo pip install –upgrade pip
sudo pip install –upgrade virtualenv
For older versions of Ubuntu
Install Easy Install
sudo apt-get install python-setuptools python-dev build-essential
Install pip
sudo easy_install pip
Install virtualenv
sudo pip install –upgrade virtualenv
I advice you to reboot your server first after installing python-pip package