卍龘卐 发表于 2023-3-30 10:11:37

pyqt5

ImportError: DLL load failed while importing QtCore: 找不到指定的程序。

from PyQt5 import QtCore, QtGui, QtWidgets

为什么from PyQt5 import QtCore, QtGui, QtWidgets就QtCore是灰的,别的可以

Traceback (most recent call last):
File "...", line 13, in <module>
    from PyQt5 import QtCore, QtGui, QtWidgets
ImportError: DLL load failed while importing QtCore: 找不到指定的程序。

歌者文明清理员 发表于 2023-4-12 18:43:34

这个错误通常是因为缺少PyQt5的一些依赖库或者版本不匹配,建议重装PyQt5或者安装其依赖库。关于QtCore灰的问题,可能是因为你的IDE没有检测到PyQt5中的QtCore模块,可以尝试重新打开IDE或者重新安装PyQt5。
页: [1]
查看完整版本: pyqt5