The Python module creates yum simple error notes!

Source: Internet
Author: User

[email protected] yum.repos.d]# Yum Clean all

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


Install a package which provides this module, or

Verify the module is installed correctly.


It ' s possible that the above module doesn ' t match the

Current version of Python, which is:

2.7.8 (default, SEP 5 2016, 17:22:38)

[GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]


If You cannot solve this problem yourself and go to

The Yum FAQ at:

Http://yum.baseurl.org/wiki/Faq


[Email protected] yum.repos.d]#

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Probably a custom installation python caused

[[email protected] yum.repos.d]# python

Python 2.7.8 (default, SEP 5 2016, 17:22:38)

[GCC 4.4.7 20120313 (Red Hat 4.4.7-17)] on linux2

Type "Help", "copyright", "credits" or "license" for more information.

>>>

Modify it here:

[Email protected] ~]# cd/usr/bin/

[Email protected] bin]# mv Python.bak python

MV: Do you want to overwrite "python"? Y

[[email protected] bin]# python

Python Python2.6.bak Python2.bak

[[email protected] bin]# python

Python 2.6.6 (r266:84292, Jan 22 2014, 09:42:36)

[GCC 4.4.7 20120313 (Red Hat 4.4.7-4)] on linux2

Type "Help", "copyright", "credits" or "license" for more information.

>>>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

[email protected] bin]# Yum Clean all

Loaded plugins: Fastestmirror

Cleaning repos:base elrepo epel epel-debuginfo epel-source Extras ren updates

Clean everything up.

Cleaning up list of fastest mirrors

[Email protected] bin]#

Yum List

#############################################

can be used!

This article is from the "[email protected]" blog, please be sure to keep this source http://renzhiyuan.blog.51cto.com/10433137/1847094

The Python module creates yum simple error notes!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.