初学Python的GUI开发,在使用Pyinstaller打包PySide2为exe程序后,无法打开exe文件。
报错信息为:
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.(该应用程序无法启动,因为无法初始化Qt平台插件。 重新安装应用程序可以解决这个问题。)
Available platform plugins are: minimal (from
C:UsersOrangeDesktop'testPyuiui5distui5PySide2pluginsplatfor ms), offscreen (from
C:UsersOrangeDesktoptestPyuiui5distui5PySide2pluginsplatfor ms), windows (from
C:UsersOrangeDesktoptestPyuiui5distui5PySide2pluginsplatfor ms), minimal, offscreen, windows.
【报错信息如图所示】
我在网络中查询了很多资料,尝试了两天后终于解决问题,现将经验分享给大家。