title: Python and Yum issue CentOS 5.4
body: <p>I'm new to Linux/CentOS and I'm not having the most fun using it. I was developing something locally on my Mac using python 2.7 when I ran it on the server I ran into issues which I put down to being the outdated version of Python (2.4.3) I then updated it, which wasn't a very good idea. I built it from source and then ran into issues, Yum and other modules disappeared.</p>
  
  <p>I'm not back using Python 2.4.3 but I still don't have Yum back.</p>
  
  <blockquote>
    <p>[root@issues ~]# yum Could not find platform independent libraries
     Could not find platform dependent libraries 
    Consider setting $PYTHONHOME to [:] </p>
    
    <p>'import site' failed; use -v for traceback There was a problem importing one of the
    Python modules required to run yum. The error leading to this problem
    was:</p>
    
    <p>No module named yum</p>
    
    <p>Please install a package which provides this module, or verify that
    the module is installed correctly.</p>
    
    <p>It's possible that the above module doesn't match the current version
    of Python, which is:
    2.4.3 (#1, Jun 18 2012, 08:55:31)  [GCC 4.1.2 20080704 (Red Hat 4.1.2-52)]</p>
    
    <p>If you cannot solve this problem yourself, please go to  the yum faq
    at:   <a href="http://wiki.linux.duke.edu/YumFaq" rel="nofollow">http://wiki.linux.duke.edu/YumFaq</a></p>
  </blockquote>
  
  <p>Searching loads of forums everyone says that it's because of a different version of Python, this is no longer the case for me, I think it's something to do with Yum being mapped to a different directory. </p>
  
  <p>I found this command somewhere else and ran this: </p>
  
  <blockquote>
    <p>[root@issues ~]# rpm -V python </p>
    
    <p>missing /usr/bin/python2 </p>
    
    <p>missing /usr/bin/python2.4</p>
  </blockquote>
  
  <p>Does anyone know what to do or where to go for help? I really need to get this fixed as soon as possible!</p>
  
  <p>Thanks</p>
  
  <p>Actually just to add, If I run python I get this output.</p>
  
  <blockquote>
    <p>[root@issues ~]# python</p>
    
    <p>Could not find platform independent libraries </p>
    
    <p>Could not find platform dependent libraries </p>
    
    <p>Consider setting $PYTHONHOME to [:]</p>
    
    <p>'import site' failed; use -v for traceback</p>
    
    <p>Python 2.4.3 (#1, Jun 18 2012, 08:55:31) </p>
    
    <p>[GCC 4.1.2 20080704 (Red Hat 4.1.2-52)] on linux2</p>
    
    <p>Type "help", "copyright", "credits" or "license" for more information.</p>
    
    <blockquote>
      <blockquote>
        <p>></p>
      </blockquote>
    </blockquote>
  </blockquote>