This guide is for me to rmember how I setup a Python development environment on a new machine. These steps were derived from these 2 links:
http://nextdime.wordpress.com/2014/07/03/how-to-set-up-python-development-environment-ubuntu-14-04/
http://www.saltycrane.com/blog/2010/02/how-install-pip-ubuntu/
First, as always, update your sources.
$ sudo apt-get update
Then install the following:
$ sudo apt-get install python-dev
$ sudo apt-get install python-setuptools
$ sudo apt-get install build-essential
$ sudo apt-get install python-pip
$ sudo apt-get install sqlite3
Upgrade pip.
$ sudo pip install --upgrade pip
With pip installed and upgraded, we can now use pip to install virtualenv and the wrapper.
$ sudo pip install virtualenv
$ sudo pip install virtualenvwrapper
Now modify your bashrc file.
if [ -f /usr/local/bin/virtualenvwrapper.sh ]; then
export WORKON_HOME=$HOME/.virtualenvs
source /usr/local/bin/virtualenvwrapper.sh
fi
This is a basic python development environment. Please review links above for a more comprehensive setup.