Python &引用;ModuleNotFoundError:没有名为';dbus'&引用;关于马科斯

Python &引用;ModuleNotFoundError:没有名为';dbus'&引用;关于马科斯,python,python-3.x,macos,dbus,Python,Python 3.x,Macos,Dbus,我在使用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安装python

我在使用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安装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相关的答案来修复此问题。

尝试执行
pip安装dbus-python
。在fedora 34上它对我有效。

这能回答你的问题吗?