This application failed to start because no Qt platform plugin could be initialized


錯誤提示

在打開PyQt5-tools中的Designer.exe時,提示如下錯誤:

image-20200619231239409

designer

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

解決方法

定位到Python38\Lib\site-packages\PyQt5\Qt\plugins,這個位置取決於你安裝Python的位置,我的電腦上該位置的完整路勁是:C:\Users\focksor\AppData\Local\Programs\Python\Python38\Lib\site-packages\PyQt5\Qt\plugins

將該目錄下的platforms文件夾復制到Python38\Lib\site-packages\pyqt5_tools\Qt\bin,並替換處於該目錄下的platforms內的文件。

再次打開designer.exe,此時問題應該已解決。

參考

PyQt5 Designer is not working: This application failed to start because no Qt platform plugin could be initialized

提示

如果你同樣遇到該問題並通過此貼解決了問題,你可以留下你的評論來提示后來人該方法是可行的。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM