简体   繁体   中英

How to install dbus-python on macOS?

In the first step: configure, I got the following error:

... ... 
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 is complaining that it can't find dbus in the system. Try installing it first by doing something like:

brew install dbus

Then, try installing dbus-python by running

pip install dbus-python

In order to run the dbus daemon do brew services start dbus as said in the documentation .

Please see: https://macappstore.org/d-bus/

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 2> /dev/null
brew install d-bus

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM