PyBlueZ导致导入错误

时间:2018-03-16 18:20:15

标签: python python-3.5 pybluez

我正在尝试编写一个程序,可以通过蓝牙与游戏控制台配对,并充当它的控制器。为了做到这一点,我尝试安装PyBlueZ,但我只能import bluetooth,因为它在我的屏幕上显示此错误:

Traceback (most recent call last):
  File "<pyshell#1>", line 1, in <module>
    import bluetooth
  File "C:\Python35\lib\bluetooth\__init__.py", line 39, in <module>
    from bluetooth.msbt import *
  File "C:\Python35\lib\bluetooth\msbt.py", line 2, in <module>
    import bluetooth._msbt as bt
ImportError: No module named 'bluetooth._msbt'

这是因为我的安装错误,还是模块坏了?在任何一种情况下,都有修复吗?

0 个答案:

没有答案