1. Centos 7.9 comes with python2.7 version, upgrade to 3.6 version
which yum=> Find the yum path
vi /usr/bin/yum
Modified to:
#!/usr/bin/python
Modify to the system's python path
#!/usr/bin/python2.7
The system comes with yum which is 2.7 test yum install wget
2. Also modify /usr/libexec/urlgrabber-ext-down to
#!/usr/bin/python2.7
[root @db01 ~]# vi /usr/libexec/urlgrabber-ext-down
Copyright notice: This article is an original article by the blogger and may not be reproduced without the blogger's permission.
Linux