Install other version of python under Linux

Used to install 2.7.3 under Debian 6.

Install pythonbrew:

# installs in ~/.pythonbrew
curl -kL | 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

And install packages with:

pip install oauth2