File "c:\users\\anaconda3\lib\site-packages\PyInstaller\hooks\hook-PyQt5.py", line 11, in <module>
from PyInstaller.utils.hooks.qt import pyqt5_library_info, \
File "c:\users\\anaconda3\lib\site-packages\PyInstaller\utils\hooks\qt.py", line 162, in <module>
pyqt5_library_info = QtLibraryInfo('PyQt5')
File "c:\users\\anaconda3\lib\site-packages\PyInstaller\utils\hooks\qt.py", line 54, in __init__
if hooks.is_module_satisfies("PyQt5 >= 5.15.4"):
File "c:\users\\anaconda3\lib\site-packages\PyInstaller\utils\hooks\__init__.py", line 502, in is_module_satisfies
version = get_module_attribute(module_name, version_attr)
File "c:\users\\anaconda3\lib\site-packages\PyInstaller\utils\hooks\__init__.py", line 352, in get_module_attribute
raise AttributeError(
AttributeError: Module 'PyQt5' has no attribute '__version__'
在 exe 形成过程中出现错误,我该如何解决这些错误。我已经通过 pip install pyqt6 安装了 pyqt6