如何在macOS上安装dbus-python?

8
在第一步:配置中,我遇到了以下错误:
... ... 
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.
1个回答

5

苹果电脑系统(OSX)提示无法在系统中找到dbus。请先尝试安装它,例如执行以下操作:

brew install dbus

然后,尝试通过运行以下命令来安装dbus-python

pip install dbus-python

为了运行dbus守护进程,请按照文档中所说的方法执行brew services start dbus。具体内容请参阅文档

4
对我没有起作用。错误在这里 - Captain Jack Sparrow
也对我没用,我使用的是M1芯片的MacBook Pro 13寸。 - MD Sazid Hasan Dip

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接