Install python 3 double version python2 and solve problems arising from too dependent yum version of python problem

error

 

Solution

First, yum upgrade directly above python3  

The second is to modify yum interpreter for the old version python2.7, is about the connection file / usr / bin / python soft connection back /usr/bin/python2.7. Version palliative, not recommended.

Third, change the settings in the settings explained that modify the / usr / bin / yum file, specify the use of yum python2.7 as interpreter:

The first line "#! / Usr / bin / python" was changed to "#! / Usr / bin / python2" can be .

However, not finished: Install the software ERR0R time and there will be another error

 

 Like a previous problem, so the solution is the same:

vim    /usr/libexec/urlgrabber-ext-down

The first line "#! / Usr / bin / python" was changed to "#! / Usr / bin / python2" can be.

 

 test was successful

Lian access is soft python python 3.6 yum original use was still too python2.7

 

Guess you like

Origin www.cnblogs.com/python-diy/p/11993394.html