I was trying to install a separate version of python 2.7 (2,7.10) on my Ubuntu machine. The idea was to run them separately, but when I installed it from source, it became the default version. I assume because they are both releases of 2.7.

Now I have some issues with my python (see example below) - is there a way to safely remove this new version of python to revert back to the system install of 2.73?


FYI, I fixed this by running:

which -a python

This gave me 2 different python binaries:


where /usr/bin/python was the original.

Both of these paths were symlinks to python2.7 in the same directories, that is /usr/bin/python was a symlink to /usr/bin/python2.7 and so on.

I simply symlinked the /usr/local/bin/python to /usr/bin/python2.7 and the conflicts were resolved.

I am not sure if this is the best solution but it seems to work.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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