After updating python, an error occurred:
# 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.9 (default, Mar 3 2017, 15:03:33) [GCC 4.8.5 20150623 (Red Hat 4.8.5-11)] If you cannot solve this problem yourself, please go to the yum faq at: http://yum.baseurl.org/wiki/Faq # which python /usr/bin/python # python -V Python 2.7.9 # ls -l /usr/bin/python -rwxr-xr-x. 1 root root 8209704 Mar 3 15:03 /usr/bin/python Please tell me how to solve this problem.
yum --versionyieldsyum --versionAnd what happens ifln -s /etc/yum.conf /etc/yum/yum.conf? - nick_gabpels -l /etc/yum/yum.conf lrwxrwxrwx. 1 root root 13 Mar 2 16:13 /etc/yum/yum.conf -> /etc/yum.confls -l /etc/yum/yum.conf lrwxrwxrwx. 1 root root 13 Mar 2 16:13 /etc/yum/yum.conf -> /etc/yum.confAndyum --versionissues the same thing as the yum command - Alexeyrpm -i yum*.rpm package yum-3.4.3-150.el7.centos.noarch is already installed- Alexyum --versionproduces a version without errors, right? - nick_gabpeyum --version 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.yum --version 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.And the team# which yum /usr/bin/yum@nick_gabpe - Alexey