Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 installed python 2.6 using the instructions here on CentOS 5.4. However I realized it was a bad move and I need to revert back to 2.4, which was there originally. Can anyone guide me on how to undo what I did here? In particular, I am not sure how to undo this:

Configure ld to find your shared libs:

$ cat >> /etc/ /opt/python2.5/lib (hit enter) (hit ctrl-d to return to shell) $ ldconfig

I tried removing the alias and the symlink and even re-aliasing python to /usr/bin/python, but when I try to install an RPM i get this error:

error: Failed dependencies: is needed by ...

Thanks in advance.

share|improve this question

migrated from Mar 28 '10 at 20:05

This question came from our site for professional and enthusiast programmers.

Download the Python packages from here and force an install as follows:

rpm -Uvh --force python-*.i386.rpm

And for pete's sake, next time build from source and use make altinstall.

share|improve this answer
That or use a proper prefix - one should not be changing stuff in /usr/bin anyway. – Lee Mar 27 '10 at 9:39
You are a life-saver, thanks! – NP Mar 27 '10 at 15:36
Among other issues, remember that Yum depends on system python in CentOS. – Gregg Lind Mar 27 '10 at 21:05
thanks Ignacio, saved me some trouble! – spoon16 Jun 9 '10 at 3:45

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.