Building Python on Ubuntu with pyenv

Have you ever wanted a newer version of Python on your Ubuntu install? For example, Ubuntu 12.04.4 provides Python 2.7.3 and Python 3.2 versions, but you'd like to use a feature only available in 3.3+. Or perhaps, you need to test something on 2.6.6 to match what is avilable on Centos 6. In this article, I'm going to show you how to install a newer version of Python that installs in your home directory without breaking your system's default installed version of Python. You will also be able to switch between the system and your local versions, and still use tools such as pip and virtualenv.

more ...