PyQt5.QtWidgets 我有问题

I have an issue with the PyQt5.QtWidgets

我使用的是 python3 版本,但我无法找出“QtWidgets”模块的错误 这是代码

from PyQt5 import QtWidgets

这是输出

ImportError: DLL load failed while importing QtWidgets: The specified module could not be found.

仍然没有一个合乎逻辑的答案,但我所做的是将 python 版本从 3.8 升级到 3.9,并且它成功运行了

编辑:问题出在 QT 的 dll 库中,python 解释器找不到它们,我所做的是,我将这些 .dll 库从“C:\Python38\Lib\site-packages\PyQt5\plugins\platforms”复制到我的可执行文件所在的文件夹并且一切正常。