ModuleNotFoundError:没有名为“六个"的模块 [英] ModuleNotFoundError: No module named 'six'

查看:54
本文介绍了ModuleNotFoundError:没有名为“六个"的模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在我的 Fedora 27 上设置 lamp服务器.引用

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'

我重新安装了 6 软件包,但是仍然出现相同的错误消息.

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

推荐答案

您可能没有安装六个Python模块.你可以找到它 pypi

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

要安装它:

$ easy_install six

如果已安装pip,则可以运行 $ pip install'six'

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

这篇关于ModuleNotFoundError:没有名为“六个"的模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆