【问题标题】:"ModuleNotFoundError: No module named 'dbus'" on macOSmacOS 上的“ModuleNotFoundError:没有名为 'dbus' 的模块”
【发布时间】:2021-08-14 09:43:49
【问题描述】:

我在使用 notify2 模块时遇到错误。

ModuleNotFoundError: 没有名为“dbus”的模块

错误来自 notify2.py 文件。

当我尝试pip install dbus 时,输出如下:

ERROR: Could not find a version that satisfies the requirement dbus (from versions: none)
ERROR: No matching distribution found for dbus

当我尝试brew install python-dbus

==> Searching for similarly named formulae...
Error: No similarly named formulae found.
Error: No available formula or cask with the name "python-dbus".
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.

我找不到任何与 macOS 相关的答案来解决此问题。

【问题讨论】:

标签: python python-3.x macos dbus


【解决方案1】:

试试pip install dbus-python。它在 Fedora 34 上对我有用。

【讨论】:

    猜你喜欢
    • 2023-03-03
    • 2020-10-09
    • 1970-01-01
    • 1970-01-01
    • 2019-08-17
    • 2019-03-28
    • 1970-01-01
    • 2022-01-07
    • 2017-12-14
    相关资源
    最近更新 更多