Python Software Installation – Best Way to Get Python 2.5 and 2.7

pythonsoftware installation

Ubuntu 10.04 has only two supported Python versions 2.6 and 3.1. Developers often need more, to test that their Python code works on 2.7, 2.5 (and maybe even 2.4 and older ones). What's the best way to install those Python versions side-by-side on a lucid system?

Is it Felix Krull's PPA, which I'm currently using?

Incidentally, some important packages aren't available in those non-standard Pythons from the deadsnakes PPA:

  • python-setuptools (but you can install python-setuptools-deadsnakes)
  • python-profiler

Best Answer

I also use the fkrull's Deadsnakes PPA. I think it is the best way to get Python 2.4, 2.5, and 2.7 at this time. I have not run into any problems using it alongside the default Python2.6. It also helps to keep things clean if you use a virtualenv, especially for those versions of Python that are not the system default.