本文内容皆为作者原创,如需转载,请注明出处:https://www.cnblogs.com/xuexianqi/p/13392975.html
1.使用yum remove
卸载
yum remove python2
如有报错,尝试下面的方法
2.使用rpm命令
rpm -e --nodeps python
然后输入下方命令,找到残留文件路径,进行删除
whereis python
yum remove
卸载yum remove python2
rpm -e --nodeps python
whereis python