PyCharm调试PyQt6 6.8.0时出现DLL加载失败并崩溃的问题求助
PyCharm调试PyQt6 6.8.0时出现DLL加载失败并崩溃的问题求助
大家好,我最近把PyQt6从6.7.1升级到了最新的6.8.0版本,程序正常运行的时候完全没问题,但只要一用PyCharm社区版的调试功能,就会报错然后崩溃,实在找不到解决办法,来这里求助各位大佬!
我的环境信息:
- PyCharm Community Edition 2023.2.5(我以为是最新版)
- PyQt6 6.8.0
- Windows系统
调试时控制台输出的错误信息如下:
Traceback (most recent call last): File "C:\Program Files\JetBrains\PyCharm Community Edition 2023.2.5\plugins\python-ce\helpers\pydev\pydevd.py", line 1570, in _exec pydev_imports.execfile(file, globals, locals) # execute the script ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\JetBrains\PyCharm Community Edition 2023.2.5\plugins\python-ce\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile exec(compile(contents+"\n", file, 'exec'), glob, loc) File "C:\Users\username\OneDrive\Dokumentai\PyCharmProjects\DrumsProject\main.py", line 7, in <module> from PyQt6.QtWidgets import (QMainWindow, QApplication, QFrame, QPushButton, QSizeGrip, QDialog, QLabel, QSlider, ImportError: DLL load failed while importing QtWidgets: The specified procedure could not be found. python-BaseException
具体就是在导入PyQt6的QtWidgets模块时出现了DLL加载失败的问题,提示找不到指定的过程。正常运行程序的时候完全不会出现这个问题,只有调试的时候才会出状况,有没有大佬遇到过类似的情况,或者知道怎么解决的?
备注:内容来源于stack exchange,提问作者Edward
相关产品推荐
相关产品推荐

