如何在 macOS 上安装 dbus-python?
Posted
技术标签:
【中文标题】如何在 macOS 上安装 dbus-python?【英文标题】:How to install dbus-python on macOS? 【发布时间】:2017-08-25 10:52:30 【问题描述】:在第一步:配置中,我得到了以下错误:
... ...
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】:OSX 抱怨它在系统中找不到 dbus。尝试先安装它,方法是:
brew install dbus
然后,尝试通过运行安装dbus-python
pip install dbus-python
【讨论】:
对我不起作用。错误是here【参考方案2】:请看:https://macappstore.org/d-bus/
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 2> /dev/null
brew install d-bus
【讨论】:
以上是关于如何在 macOS 上安装 dbus-python?的主要内容,如果未能解决你的问题,请参考以下文章