没有名为dbus的模块 - 我已经有-raspbian

发布于 2025-01-21 03:29:44 字数 580 浏览 4 评论 0原文

重新安装时出现 ImportError“没有名为 dbus 的模块”

(“sudo apt-get install --reinstall dbus”)

它写给我

“0 已升级,0 已新安装,1 已重新安装,0 已删除,15 未删除 升级”

任何人都可以帮助我吗?我正在尝试使用此 github 存储库: "keyboard_mouse_emulate_on_raspberry"

我需要修复这个问题,因为 send_string.py 文件给了我一个错误

Traceback (most recent call last):
  File "send_string.py", in line 4, in <module>
    import dbus

I'm getting an ImportError "no module named dbus" when I reinstalled it

("sudo apt-get install --reinstall dbus")

It wrote me

"0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 15 not
upgraded"

Can anyone help me? I'm trying to use this github repository: "keyboard_mouse_emulate_on_raspberry"

I need to fix that because of send_string.py file is giving me an error

Traceback (most recent call last):
  File "send_string.py", in line 4, in <module>
    import dbus

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

陌路终见情 2025-01-28 03:29:44

使用 pip,而不是 apt-get。

pip install dbus

python pip install dbus

python -m pip install dbus

Use pip, not apt-get.

pip install dbus

or

python pip install dbus

or

python -m pip install dbus
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文