ModuleNotFoundError: No module named 'six'

人走茶凉 提交于 2021-02-10 14:24:26

问题


I am trying to setup lamp server on my Fedora 27. Referring this site, I am following every step, but running this command firewall-cmd --permanent --add-service=http, here are the following errors I get

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'

I reinstalled six package, but still the same error message.


回答1:


You probably don't have the six Python module installed. You can find it on pypi

To install it:

$ easy_install six

If you have pip installed you can run $ pip install 'six'



来源:https://stackoverflow.com/questions/49490945/modulenotfounderror-no-module-named-six

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!