gpt4 book ai didi

python - PyBluez 导入错误 : DLL load failed: %1 is not a valid Win32 application

转载 作者:太空宇宙 更新时间:2023-11-04 05:42:20 24 4
gpt4 key购买 nike

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

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.

有谁知道我该如何解决这个问题

最佳答案

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

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

这对我有用。

关于python - PyBluez 导入错误 : DLL load failed: %1 is not a valid Win32 application,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33459982/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com