解决yum不能正常使用,报错: No module named yum,如何安装python2和python3并行版本,搭建自动化环境

嗨,我是兰若姐姐,今天在用yum安装python的时候,发现yum整个都不能使用了,但是之前都是好好的,yum相关的命令都是可以正常使用,所以可以判断的是,yum是在我之后的操作过程中被搞坏了,为了恢复yum只能一步步的排查,现在执行yum直接报错就是: No module named yum

[centos@ip-172 bin]$ sudo yum clean all
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

   No module named yum

Please install a package which provides this module<

你可能感兴趣的:(安装教程,报错解决,工具使用专栏,自动化,运维)