"ModuleNotFoundError: No module named 'dbus'" on macOS
"ModuleNotFoundError: No module named 'dbus'" on macOS
我在使用 notify2 模块时遇到错误。
ModuleNotFoundError: No module named '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 相关的答案来解决这个问题。
尝试pip install dbus-python
。它在 Fedora 34 上对我有用。
不确定 MacOS,但是 debian-based OS 我的问题已解决 w:
sudo apt-get update
sudo apt-get -y install libglib2.0-dev libdbus-1-3 libdbus-1-dev
按照这个so
我在使用 notify2 模块时遇到错误。
ModuleNotFoundError: No module named '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 相关的答案来解决这个问题。
尝试pip install dbus-python
。它在 Fedora 34 上对我有用。
不确定 MacOS,但是 debian-based OS 我的问题已解决 w:
sudo apt-get update
sudo apt-get -y install libglib2.0-dev libdbus-1-3 libdbus-1-dev
按照这个so