Run these commands in the terminal. The $ means your terminal prompt.
$ sudo apt-get update
$ sudo apt-get install python-pip
$ sudo pip install virtualenv
$ sudo pip install virtualenvwrapper
Open up your .bashrc file. Example: gedit ~/.bashrc. If you use zsh, then edit ~/.zshrc instead. Put these lines at the bottom: