Rüste Python auf, ohne leckeres zu machen

Ich habe kürzlich Python 2.7.3 auf einem CentOS-Computer installiert, indem ich es aus dem Quellcode kompiliert habe. Python 2.7.3 ist unter /opt/python2.7 installiert, und als ich es installiert habe, habe ich gerade / usr / bin / python geändert, um auf die neue Version zu verweisen. Das ist anscheinend falsch, denn als ich es getan habe, hat es mir das Leben geraubt. Ich würde folgendes bekommen.

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

Ich habe / usr / bin / python geändert, um wieder auf Python 2.6.6 zu verweisen, aber jetzt ist 2.6.6 die Standardversion von Python. Irgendeine Idee, wie man das behebt?

Antworten auf die Frage(7)

Ihre Antwort auf die Frage