plugin.window.find

用户投稿   2024-03-10 00:22:08

当利用PYTHON打包PYQT时出现

错误代码:

plugin.window.find

"

ThisapplicationfailedtostartbecauseitcouldnotfindorloadtheQtplatformplugin“windows”

in“”.

Reinstallingtheapplicationmayfixthisproblem."时,网上很提供了很多办法,就是将plugins\\platforms文件夹放在XX.exe文件即可解决,下面介绍如何查找在自己电脑上这个正常文件夹在哪?

fromPyQt5.QtCoreimportQCoreApplication

qtpath=QCoreApplication([])

#print(qtpath.applicationDirPath())

print(qtpath.libraryPaths())

明显

plugin.window.find