Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have installed Ubuntu 12.10 on my laptop, now i want to use Python 2.5.4 for educational purpose. Can any one help me with step by step instructions... I also need IDLE for 2.5.4.

share|improve this question
2.5.4? Why? "Python 2.5.4 has been replaced by a newer bugfix release of Python" Should that not be 2.5.6 according to: – Rinzwind Oct 22 '12 at 8:10
Please create a new question for idle. AU works best with 1 question and 1 valid answer. – Rinzwind Oct 22 '12 at 8:19

I use for all the old python versions.

It seems maintained and new versions are also added.

simply do the following:

sudo apt-add-repository ppa:fkrull/deadsnakes
sudo apt-get update
sudo apt-get install python2.5
share|improve this answer
Excellent and easier than mine so +1 ;) – Rinzwind Oct 22 '12 at 8:36
This and virtualenv's has saved me enourmous ammounts of hassle ;) – Steveh Oct 22 '12 at 9:01
This method does install 2.5.6 btw. I got distracted by the question asking for 2.5.4... – Rinzwind Oct 22 '12 at 9:07

This will install 2.5.4 from source:

sudo apt-get install build-essential gcc
cd Downloads
tar -xvzf Python-2.5.4.tgz
cd Python-2.5.4
./configure --prefix=/usr/local/python2.5
make test
sudo checkinstall --pkgname python2.5 --provides python2.5 

NOTE: if compiling was halted with error from Modules/getbuildinfo.o and Modules/getbuildinfo.c ---> redo the configure command like this SVNVERSION=not-found ./configure --prefix=[your/path/preference]

If you want to replace your standard python:

sudo ln -s /usr/local/python2.5/bin/python /usr/bin/python2.5 </pre>

You can use this version by issuing python2.5 instead of python.

share|improve this answer
Can you explain what the checkinstall command does? Seems like make install is the normal thing to do. – mlissner Aug 12 '14 at 18:11
see It IS make install + extras. – Rinzwind Aug 12 '14 at 18:40

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.