2015-11-01 90 views
2

每當我試圖導入藍牙模塊我得到這個錯誤PyBluez導入錯誤:DLL加載失敗:%1不是有效的Win32應用程序

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. 

沒有任何人知道我怎樣才能解決這個

+0

嘿你是否得到這個固定?我有同樣的錯誤! –

回答

1

嘗試下載並安裝64位 「PyBluez-0.22-CP34-NONE-win_amd64.whl」 從this site

安裝: PIP安裝\ complete_path \ PyBluez-0.22-CP34-NONE-win_amd64.whl

這對我有用。

+0

謝謝你的工作! –

相關問題