Atualize o python sem quebrar o yum
Recentemente instalei o Python 2.7.3 em uma máquina CentOS, compilando a partir da fonte. O Python 2.7.3 é instalado em /opt/python2.7 e quando eu o instalei mudei / usr / bin / python para apontar para a nova versão. Isso aparentemente está errado, porque quando eu fiz isso, quebrou o yum. Eu pegaria o seguinte.
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
No module named yum
Please install a package which provides this module, or
verify that the module is installed correctly.
It's possible that the above module doesn't match the
current version of Python, which is:
2.7.3 (default, May 15 2012, 17:45:42)
[GCC 4.4.4 20100726 (Red Hat 4.4.4-13)]
If you cannot solve this problem yourself, please go to
the yum faq at:
http://yum.baseurl.org/wiki/Faq
Eu mudei / usr / bin / python para apontar de volta para o python 2.6.6, mas agora 2.6.6 é a versão padrão do python. Alguma ideia de como consertar isso?