Download python 2.7 source code from http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tar.bz2
Decompress the source code, and run:
You maybe encounter “modules were not found” errors, just install these packages:
sudo apt-get build-dep python2.6 python-gdbm python-bsddb3 libgdbm-dev
Install Python 2.7 on Ubuntu 10.04
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.