Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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 tried to install python 2.5.4 on Ubuntu 11.04. I need to be able to remove my original installation of this older python, and then get instructions on installing. Further, will I have to tell the system which python to use or will it figure it out?

share|improve this question
How did you [try to] install it? – Oli May 23 '11 at 15:05
Hello, this question has no information and activity for a very long time. I am closing it for now. If by any reason you think this question is still viable or useful in anyways or that there is still a good chance it will be answered please flag it to a moderator or add a comment with the reasons why you want it open. Regards. – Nitin Venkatesh Feb 23 '12 at 19:21

You need to tell scripts which version of python they should be using, otherwise the system will choose for you and it will always be the same one. There is an environment variable that also controls the python version executed when the script uses the envvar bang line (instead of #!/usr/bin/python).

If you need an older version of python, you should try to install it via a debian package. If you can't find one, then you should not install it and simply use a binary package in /opt and redirect all your scripts to use that python. I presume you might not know how to use chroot or anything similar.

share|improve this answer

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.