misakamikodo / mhxy_script

梦幻西游手游脚本(基于pyautogui、opencv,在python环境下运行文件)
198 stars 69 forks source link

大佬求教下,DLL load failed while importing QtGui #38

Closed asChrislai closed 2 months ago

asChrislai commented 3 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依赖包显示已安装,但运行就报错

misakamikodo commented 2 months ago

python版本是3.8以上吗,pyQt6需要3.8的版本

asChrislai commented 2 months ago

python版本3.8/3.9/3.10/3.12都试过,都是报同样的异常; 一开始怀疑是环境配置问题,用ananconda也是同样的异常

misakamikodo commented 2 months ago

[DLL load failed while importing QtGui](https://stackoverflow.com/questions/73893299/dll-load-failed-while-importing-qtgui) 试试这个

asChrislai commented 2 months ago

按上述方案,已解决