PyBluez ImportError:DLL加载失败:%1不是有效的Win32应用程序

时间:2015-11-01 07:02:02

标签: python bluetooth importerror pybluez

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

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.

有人知道如何解决这个问题

1 个答案:

答案 0 :(得分:1)

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

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

这对我有用。