PyBlueZ导致imp出错

2024-09-28 23:43:27 发布

您现在位置:Python中文网/ 问答频道 /正文

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

这是因为我的安装错误,还是模块刚刚损坏?无论哪种情况,都有解决办法吗?在


Tags: inpyimport程序lib错误line控制器