ImportError: No module named dbus

2.1k views Asked by At

I installed Python2.7.12, installed dbus-python-1.2.4, suggesting that the installation is successful, but still can not be used, why?

Processing dependencies for dbus-python==1.2.4
Finished processing dependencies for dbus-python==1.2.4

Use process:

root@SKYPHY:/usr/lib/python2.7/site-packages# python
Python 2.7.12 (default, Sep  7 2017, 15:21:53) 
[GCC 4.8.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import dbus
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named dbus
2

There are 2 answers

0
Donnie On BEST ANSWER

This can not use setup.py installation, but to use ./configure to compile

1
Devon Carriere On

The only thing I could think of is to upgrade setuptools, it may help when you deal with this kind of error.