C/C++教程

centos 7.6 安装ansible报错 ImportError: No module named _conf

本文主要是介绍centos 7.6 安装ansible报错 ImportError: No module named _conf,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

 

 解决方法:因为刚安装了python,查看报错python2.7觉得有可能是python版本问题,通过命令更新一下python

yum update python*

 

 

 

 再次执行也是报错

 

 最后百度,尝试了以下方法,执行命令

yum install dnf-data dnf-plugins-core libdnf-devel libdnf python2-dnf-plugin-migrate dnf-automatic

 

 

 

 再次执行命令 dnf install ansible

 

 

问题解决

这篇关于centos 7.6 安装ansible报错 ImportError: No module named _conf的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!