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

2 Answers 2


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.


Your best bet would probably be using debootstrap to create a chroot of an earlier Ubuntu version where 2.5 was supported, or use a virtual machine.

Installing it in Ubuntu alongside 2.6 may cause problems.

  • 1
    Could you be more specific about the problems that may cause? Oct 3, 2010 at 20:57
  • Some libraries are incorrectly marked as supporting 'all' Python versions when they only support 2.6.x. They will break in interesting and hard-to-debug ways.
    – lfaraone
    Oct 9, 2010 at 14:21

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .