错误提示:This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
翻译:此应用程序无法启动,因为无法初始化任何Qt平台插件。重新安装应用程序可以解决此问题。
解决办法:从"Python\Python311\Lib\site-packages"中,把"PyQt5"和"pyqt5_plugins"两个文件夹复制到Python\Python311\Lib安装目录下。
例如:
从"C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages"把“PyQt5”文件夹、“pyqt5_plugins”文件夹复制到"C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib"下。
来源地址:https://blog.csdn.net/weixin_55609727/article/details/130558657