yum install python3 -y
cd /usr/bin
ll python*
python -V
python3 -V
mv python python.bak
ln -s /usr/bin/python3 /usr/bin/python
python -V
vim /usr/bin/yum
vim /usr/libexec/urlgrabber-ext-down
改为
#!/usr/bin/python2
原文:https://www.cnblogs.com/vicowong/p/14732294.html