Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
1  
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: python.org/download/releases/2.5.4 –  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

2 Answers 2

This is an installation path for installing 2.5.4 from source:

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

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 issueing python2.5 instead of python.

share|improve this answer

I use https://launchpad.net/~fkrull/+archive/deadsnakes 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

Your Answer

 
discard

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.