无法导入PyQt5

2024-06-28 19:32:20 发布

您现在位置:Python中文网/ 问答频道 /正文

在Python(v3.6,Win10)中,如果我尝试导入QtChart,就会出现一个错误。命令

>from PyQt5.QtChart import *

产生以下信息:

ImportError: DLL load failed. The specified procedure could not be found

命令pip list显示我有匹配的PyQt5和PyQtChart版本

PyQt5                         5.15.1
PyQt5-sip                     12.8.0
PyQtChart                     5.15.1

这排除了this solution。让我困惑的是,我

>print(QtCore.PYQT_VERSION_STR)
>5.9.2

我不确定这个版本号是否必须与上面的版本号匹配


Tags: thefromimport命令信息版本号错误load