Issues after upgrading python2.7.11

Source: Internet
Author: User

After the installation of python2.7.11 after a few days is good, but today with Yum found the problem

[email protected] yum.repos.d]# Yum list
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.11 (default, APR 7 2016, 21:10:55)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-16)]

If You cannot solve this problem yourself and go to
The Yum FAQ at:
Http://yum.baseurl.org/wiki/Faq

Check on the Internet to know that the original Yum needs Python environment, python2.7.11 is too new, need to change back to the old version

which Yum

Whereis python
Vim/usr/bin/yum

Change #!/usr/bin/python to #!/usr/bin/python2.6

Issues after upgrading python2.7.11

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.