关于centos7 执行firewall-cmd命令报错如下: firewall-cmd --list-all Traceback (most recent call last): File “/usr/bin/firewall-cmd”, line 24, in from gi.repository import GObject ModuleNotFoundError: No module named ‘gi’ 解决方案: 问题是python里面没有这个包,我是因为安装了python3的解释器,设置后,python是指向python3的,而原来的系统firewall-cmd 是命令脚本是使用python2的,而python3没有对应包