gpt4 book ai didi

python - 如何在 macOS 上安装 dbus-python?

转载 作者:行者123 更新时间:2023-11-28 19:08:47 48 4
gpt4 key购买 nike

第一步:configure,出现如下错误:

... ... 
checking for DBUS... no
configure: error: Package requirements (dbus-1 >= 1.6) were not met:

No package 'dbus-1' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables DBUS_CFLAGS
and DBUS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

最佳答案

OSX 提示它在系统中找不到 dbus。首先尝试通过执行以下操作来安装它:

brew install dbus

然后,尝试通过运行安装 dbus-python

pip install dbus-python

为了运行 dbus 守护进程,执行 brew services start dbus,如 documentation 中所述.

关于python - 如何在 macOS 上安装 dbus-python?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43136067/

48 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com