问题:This application failed to start because no Qt platform plugin could be initialized. Reinstalling

错误提示:This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

翻译:此应用程序无法启动,因为无法初始化任何Qt平台插件。重新安装应用程序可以解决此问题。

解决办法:从"PythonPython311Libsite-packages"中,把"PyQt5"和"pyqt5_plugins"两个文件夹复制到PythonPython311Lib安装目录下。 

例如:
从"C:UsersAdministratorAppDataLocalProgramsPythonPython311Libsite-packages"把“PyQt5”文件夹、“pyqt5_plugins”文件夹复制到"C:UsersAdministratorAppDataLocalProgramsPythonPython311Lib"下。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
THE END
分享
二维码
< <上一篇
下一篇>>