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.

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
add comment

2 Answers

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
add comment

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

share|improve this answer
add comment

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.