我正在尝试在lamp server
上设置Fedora 27
。参考此site,我正在执行每一步,但运行此命令firewall-cmd --permanent --add-service=http
,以下是我得到的以下错误
Traceback (most recent call last):
File "/usr/bin/firewall-cmd", line 31, in <module>
from firewall.client import FirewallClient, FirewallClientIPSetSettings, \
File "/usr/lib/python3.6/site-packages/firewall/client.py", line 29, in <module>
import slip.dbus
File "/usr/lib/python3.6/site-packages/slip/dbus/__init__.py", line 8, in <module>
from . import service
File "/usr/lib/python3.6/site-packages/slip/dbus/service.py", line 30, in <module>
from six import with_metaclass
ModuleNotFoundError: No module named 'six'
我重新安装了six
个包,但仍然是相同的错误消息。
答案 0 :(得分:0)
您可能没有安装六个Python模块。你可以找到它 pypi
安装它:
# ModuleA
iGlobalA = []
def fA():
iGlobalA.append(1)
print( "MA: iGlobalA=", iGlobalA )
print( "Module A Initialised, iGlobalA=", iGlobalA )
如果您安装了pip,则可以运行$ easy_install six