Windows7 64-bit, Pyside6, PyQt6, ImportError: DLL load failed while importing QtCore: The specified procedure could not be found

Windows7 64-bit, Pyside6, PyQt6, ImportError: DLL load failed while importing QtCore: The specified procedure could not be found

我通过以下命令安装了 PySide6 和 PyQt6:

python -m pip install PySide6

python -m pip install PyQt6

但是当我尝试 运行 import PySide6.QtCoreimport PyQt6.QtCore 时,我得到这个错误:ImportError: DLL load failed while importing QtCore: The specified procedure could not be found. 但是当我 运行 import PySide2.QtCoreimport PyQt5.QtCore 时,一切正常。

我尝试了很多在 Whosebug 上找到的提示,但没有任何帮助。

WindowsQt6 不再支持 7 和 8。

https://www.qt.io/blog/qt6-development-hosts-and-targets