https://github.com/qgis/QGIS/blob/release-3_16/INSTALL.md#1-introduction
for python support - SIP >= 4.12, PyQt >= 5.3 must match Qt version, Qscintilla2
>>> from PyQt5.Qt import PYQT_VERSION_STR
>>> print("PYQT is {}".format(PYQT_VERSION_STR))
PYQT is 5.14.1
>>>
我的PyQt 版本是 5.14.1
...
People sometimes mistakenly believe that support for a particular version of Qt requires a matching version of PyQt.
...
这个教程有空再看吧,太长了
https://github.com/cxinping/PyQt5
这个教程 star 挺多的,还附了一套环境; 你试试