我已经安装anaconda4
在我的 ubuntu 上,并且我的 Python 上有这些模块:
dbus-python (1.2.4)
gi (1.2)
pydbus (0.2)
QtAwesome (0.3.2)
qtconsole (4.2.0)
QtPy (1.0)
sip (4.18)
我尝试安装dbus-python (1.2.4)
,pydbus (0.2)
但是,它们都不起作用!
在python 3.5.1中测试了一个简单的程序后,出现错误:
import dbus
system_bus = dbus.SystemBus()
ImportError: No module named 'dbus'
当我pydbus
在 Python 2.7.11 和 3.5.1 中使用时:
from pydbus import SystemBus
bus = SystemBus()
systemd = bus.get(".systemd1")
for unit in systemd.ListUnits():
print(unit)
我收到此错误:
ImportError: No module named repository
唯一有效的是这个例子,PyQT4
我没有任何教程。
问题是什么?是我的安装还是其他?