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:
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
$ 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.