File "anaconda3\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 627, in exec_module
File "site-packages\PyQt5\__init__.py", line 41, in <module>
File "site-packages\PyQt5\__init__.py", line 33, in find_qt
ImportError: unable to find Qt5Core.dll on PATH
在xxoo.spec修改里
datas=[(HOMEPATH + '\\..\\site-packages\\PyQt5\\Qt\\bin\*', 'PyQt5\\Qt\\bin')],
命令行下:--add-data site-packages\\PyQt5\\Qt\\bin;PyQt5\\Qt\\bin
eg: -F -w --add-data venv\lib\site-packages\PyQt5\Qt\bin;PyQt5\Qt\bin Main.py
原文:https://github.com/pyinstaller/pyinstaller/issues/4293