首页 > Python > PYQT5蓝牙模块报错:This Windows version (6.3.9600) doe

PYQT5蓝牙模块报错:This Windows version (6.3.9600) doe

Python 2023-09-09

运行pyqt5写的应用时报了这个错:

This Windows version (6.3.9600) does not support the required bluetooth API. Consider updating to a more recent Windows (10.0.10685 or above).



原因是旧版windows里的蓝牙模块不兼容
 

解决办法

把蓝牙模块 Qt5Bluetooth.dll 名字改掉

项目根路径/venv/Lib/site-packages/PyQt5/Qt5/bin/Qt5Bluetooth.dll


 

将 Qt5Bluetooth.dll 改名为 Qt5Bluetooth.dll123 就行

改名后,再进行编译就不会报错了。