pyqt5-tools 使用qtdesigner錯誤-This application failed to start because no Qt platform plugin could be initialized


 

 運行designer.exe文件保錯

This application failed to start because it could not find or load the Qt platform plugin "windows"in “”, Available platform plugins are: minimal, offscreen, windows. Reinstalling the application may fix this problem.

 

解決方法

參考https://blog.csdn.net/a359680405/article/details/45074761

環境變量中設置pyqt5的plugins文件夾路徑

 

QT_QPA_PLATFORM_PLUGIN_PATH

C:\ProgramData\Anaconda3\Lib\site-packages\PyQt5\Qt\plugins

 


免責聲明!

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



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