Pyinstaller 打包Pyside2 报错qt.qpa.plugin
qt.qpa.plugin: Could not load the Qt platform plugin "windows" in "C:\Users\daws
on\Desktop\dist\KxImage\PySide2\plugins\platforms" even though it was found.
This application failed to start because no Qt platform plugin could be initiali
zed. Reinstalling the application may fix this problem.
Available platform plugins are: direct2d, minimal, offscreen, webgl, windows.
python版本
>python --version
Python 3.7.0
pyside版本
>pip list | findstr "PySide"
PySide2 5.15.2
通过搜索找到qwindows.dll在两个地方存在,一个是1.2M一个1.4M
D:\ProgramData\Anaconda3\envs\ryven\Library\plugins\platforms
D:\ProgramData\Anaconda3\envs\ryven\Lib\site-packages\PySide2\plugins\platforms
查看打包后的存在于打包目录下面的qt5_plugins\platforms
中是1.2M,用1.4M的替换后可以正常运行