Skip to content

Installing Python 2.4 under Ubuntu 11.10 (Oneiric Ocelot)

As I’m currently merging 2.x and 3.x branches of openpyxl, I now need to perform tests over all existing Python releases known to man. I decided to install a new Ubuntu VM to perform the the tests, but I struggled during 2.4 installation.

Tried pythonbrew, which was a very disappointing experience as nothing worked as it was supposed to.

Then I tried to build from source myself, but here again the GCC version available on ubuntu 11.10 is apparently no longer able to compile original python sources.

Here is how I did it :

  1. download RPM version for Fedora here : (direct link)
  2. install alien (sudo apt-get install alien)
  3. type the following command
$ sudo alien -i python2.4-2.4-1pydotorg.i386.rpm

Now you can type

$ python2.4

and everything should work !

Published inOpen sourceOpenpyxlPython

One Comment

  1. yarikoptic yarikoptic

    FWIW — whenever I am preparing openpyxl packages for Debian, I am backporting them to all recent Debian and Ubuntu releases, so they become available from NeuroDebian, e.g. see . And at package build time those packages excercise your unittests against the default Python version (just now spotted that I haven’t made it test against all supported — will do for the next upload/release).

Comments are closed.