Centos7 Yum and Python3 clash

Source: Internet
Author: User

Although the title is not rigorous, but I have tried many times, after installing the Python3.6, yum cannot synchronize Python. So the use of online copy to copy the practice, the Yum specified using Python2, usually need to install Python-related modules, using PIP.

Python and Pip are installed the same way as Ubuntu (Yum is out of sync and can only install PIP offline): http://www.cnblogs.com/jiu0821/p/8412007.html

/usr/bin/yum is the Yum execution program, open discovery is a python file. The first line can be seen directly using the Python source, modified to Python2. If after Yum uses still reported what file execution failed, it should be that file (also Python implementation, this is another file, the name I forgot) in the Python version needs to be developed in 2.

Centos7 Yum and Python3 clash

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.