title: "No module named yum" centos7
body: <p>my OS is CentOS Linux release 7.4.1708 </p>
  
  <p>First,I install anaconda for python.then I replace the default python in /usr/bin/python.</p>
  
  <pre><code>$ ll /usr/bin/python*
  lrwxrwxrwx. 1 root root  7 Aug 15 03:40 /usr/bin/python -&gt; python2
  lrwxrwxrwx. 1 root root  9 Aug  9 22:10 /usr/bin/python3 -&gt; python3.6
  lrwxrwxrwx. 1 root root 29 Aug  9 22:10 /usr/bin/python2.7 -&gt; /root/anaconda2/bin/python2.7
  lrwxrwxrwx. 1 root root 29 Aug  9 21:59 /usr/bin/python3.6 -&gt; /root/anaconda3/bin/python3.6
  lrwxrwxrwx. 1 root root  9 Aug  8 23:49 /usr/bin/python2 -&gt; python2.7
  
  
  Python 2.7.15 |Anaconda, Inc.| (default, May  1 2018, 23:32:55)
  [GCC 7.2.0] on linux2
  Type "help", "copyright", "credits" or "license" for more information.
  &gt;&gt;&gt;
  </code></pre>
  
  <p>so I can't use yum any more.</p>
  
  <pre><code>$ yum
  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.15 |Anaconda, Inc.| (default, May  1 2018, 23:32:55)
  [GCC 7.2.0]
  
  If you cannot solve this problem yourself, please go to
  the yum faq at:
    http://yum.baseurl.org/wiki/Faq
  </code></pre>
  
  <p>I'm try to fix <code>vi /usr/bin/yum</code> the first line to any other python path.
  but it doesn't work.</p>
  
  <p>also,I'm trying to reinstall python*.rpm like this:</p>
  
  <pre><code>rpm -ivh python-tools-2.7.5-68.el7.x86_64.rpm python-2.7.5-68.el7.x86_64.rpm python-libs-2.7.5-68.el7.x86_64.rpm tkinter-2.7.5-68.el7.x86_64.rpm
  </code></pre>
  
  <p>and reinstall <code>yum*.rpm</code> (I download a lot of <code>*.rpm</code> today...)
  but, still not work. 
  anyone give me a hand? thanks!</p>