How To Fix yum after Python Upgrade

Published Date Author: , Posted December 8th, 2015 at 10:12:44am

I upgraded to Python 2.7 and yum promptly broke.

The quick fix is to edit the yum executable script and change the top line that invokes Python:

sudo vim which yum
CHANGE FROM:
#!/usr/bin/python
TO:
#!/usr/bin/python26

UPDATED August 2nd, 2016:
On one system, I had to use the following Python 2.4 fix instead, even though Python 2.6 was installed and available:
#!/usr/bin/python24

No comments as yet.

Leave Your Comment  Leave a comment

All fields marked with "*" are required.