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

long ago I downloaded and installed python2.5 ( ./configure , make and make install ) in my system..... now every time I type the command

python --version

I get

Python 2.5.4

Is there any way I could return my default python to 2.7????

share|improve this question

The way you installed python, it will have been installed in /usr/local.

If you want to get rid of the old python:

sudo rm /usr/local/bin/python*
sudo rm /usr/local/lib/python2.5

If you just want it as non-default: make sure /usr/local/bin comes after /usr/bin in your $PATH

share|improve this answer

You should be able to make uninstall if you still have the source tree.

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.