1.针对误卸载yum卸载pythonrpm -qa|grep python|xargs rpm -e --allmatches --nodepswhereis python|xargs rm -fr2.卸载yumrpm -qa|grep yum|xargs rpm -e --allmatches --nodepswhereis yum|xargs rm -fr3.新建一个文...
原因:由于再centos上手动更新过Python 版本,造成的修改vi /usr/bin/yum-config-manager 文件, 头部文件python 修改为python2 ,保存ok
Copyright © 2005-2025 51CTO.COM 版权所有 京ICP证060544号