2

每当我尝试导入蓝牙模块时,我都会收到此错误

Traceback (most recent call last):
File "C:/Users/super/PycharmProjects/untitled1/Sql.py", line 1, in   <module>
import bluetooth
File "C:\Python27\lib\site-packages\bluetooth\__init__.py", line 37, in <module>
from .msbt import *
File "C:\Python27\lib\site-packages\bluetooth\msbt.py", line 2, in <module>
import bluetooth._msbt as bt
ImportError: DLL load failed: %1 is not a valid Win32 application.

有谁知道我怎么能解决这个问题

4

1 回答 1

1

尝试从此站点下载并安装 64 位“PyBluez-0.22-cp34-none-win_amd64.whl”

安装:pip install \complete_path\PyBluez-0.22-cp34-none-win_amd64.whl

这对我有用。

于 2016-01-08T08:23:00.963 回答