Windows 10
PyCharm
Python 3.9.0
我安装了PyQt6
,然后pyqt6-tools
在PyCharm
中抛出了文件->设置。
现在,当我运行我的程序时,我在终端中得到以下错误
from PyQt6.QtWidgets import QApplication, QWidget
PyQt6: DLL load failed while importing QtGui: The specified procedure could not be found.
我的程序代码
import sys
from PyQt6.QtWidgets import QApplication, QWidget
app = QApplication(sys.args)
window = QWidget()
window.show()
app.exec()
我该如何解决这个问题?
发布于 2022-11-29 19:51:36
下面的命令帮助我解决了这个问题:
pip install --upgrade PyQt6
https://stackoverflow.com/questions/74512247
复制相似问题