【问题标题】:How to install dbus-python on macOS?如何在 macOS 上安装 dbus-python?
【发布时间】: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.

【问题讨论】:

    标签: python macos dbus


    【解决方案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
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-11-02
      • 2017-01-11
      • 2011-11-07
      • 2021-09-19
      • 2011-07-26
      • 2019-01-10
      • 1970-01-01
      相关资源
      最近更新 更多