【问题标题】:Dbus-Python for Windows适用于 Windows 的 Dbus-Python
【发布时间】:2013-04-10 00:09:23
【问题描述】:

谁能告诉我在window 7 32位上哪个是dbus python的最佳库?我正在使用 Python 2.7。

我下载了 dbus-python 的最新 zip 并使用它,但它给出了许多导入错误,例如无法导入 dbus.exceptions 和没有名为 _dbus_bindings 的模块。

提前致谢。

【问题讨论】:

    标签: python-2.7 dbus


    【解决方案1】:

    我从 https://dl.dropbox.com/u/19049582/dbus.zip 下载的 zip 存档对我有用(最初链接自文章 http://poquitopicante.blogspot.it/2012/07/building-dbus-python-on-windows-with.html

    1) 您创建一个名为“C:\dbus”的文件夹,并在其中复制文件夹“bin”和“etc”

    2) 将“C:\dbus\bin”添加到环境变量“Path”

    3) 在“C:\Python27\Lib”中复制(合并)三个文件夹“lib\dbus-1.0”、“lib\pkgconfig”和“lib\site-packages”

    就是这样。

    【讨论】:

      猜你喜欢
      • 2013-07-02
      • 2011-10-18
      • 2014-05-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-03-25
      • 1970-01-01
      相关资源
      最近更新 更多