Closed asChrislai closed 2 months ago
Traceback (most recent call last): File "D:\mhxy_script-master (1)\mhxy_script-master\ui\mhxy_pyqt.py", line 5, in from PyQt6 import QtWidgets ImportError: DLL load failed while importing QtGui: 找不到指定的程序。
requirements依赖包显示已安装,但运行就报错
python版本是3.8以上吗,pyQt6需要3.8的版本
python版本3.8/3.9/3.10/3.12都试过,都是报同样的异常; 一开始怀疑是环境配置问题,用ananconda也是同样的异常
[DLL load failed while importing QtGui](https://stackoverflow.com/questions/73893299/dll-load-failed-while-importing-qtgui) 试试这个
按上述方案,已解决
Traceback (most recent call last): File "D:\mhxy_script-master (1)\mhxy_script-master\ui\mhxy_pyqt.py", line 5, in
from PyQt6 import QtWidgets
ImportError: DLL load failed while importing QtGui: 找不到指定的程序。
requirements依赖包显示已安装,但运行就报错