0

我正在尝试编写一个可以通过蓝牙与游戏机配对并充当它的控制器的程序。为了做到这一点,我尝试安装 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'

这是因为我的安装错误,还是模块刚刚损坏?在这两种情况下,是否有解决办法?

4

0 回答 0