Python

Install other version of python under Linux

Used to install 2.7.3 under Debian 6.

Install pythonbrew:

# installs in ~/.pythonbrew
curl -kL http://xrl.us/pythonbrewinstall | bash
# source env
source .pythonbrew/etc/bashrc

Get python 2.7.3 (it takes some time):

pythonbrew install 2.7.3

Now you can change to the 2.7.3 with:

pythonbrew use 2.7.3

Get pip to install packages:

curl -O https://raw.github.com/pypa/pip/master/contrib/get-pip.py
python get-pip.py

And install packages with:

pip install oauth2