本文介紹了PyQt5 Designer 不工作:此應用程序無法啟動,因為無法初始化 Qt 平臺插件的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!
問題描述
我對 PyQt5 Designer 有疑問.我使用 -pip install PyQt5 安裝 PyQt,然后 -pip install PyQt5-tools一切都好.但是當我嘗試運行 Designer 時,它會打開消息框并顯示錯誤:此應用程序無法啟動,因為無法初始化 Qt 平臺插件!怎么處理?
i have a problem with PyQt5 Designer. I install PyQt with -pip install PyQt5 and then -pip install PyQt5-tools everything OK. But when i try to run Designer it open messagebox with error: This application failed to start because no Qt platform plugin could be initialized! how to deal with it?
推薦答案
- 轉到 =>Python38>lib>site-packages>PyQt5>Qt>插件
- 在插件復制平臺文件夾中
- 然后轉到Python38>lib>site-packages>PyQt5_tools>Qt>bin
- 在此處粘貼文件夾.復制和替換.
這肯定會奏效..現在您可以使用設計器工具 go 并用 python 做一些有趣的事情......
This will surely work.. Now you can use designer tool go and do some fun with python...
這篇關于PyQt5 Designer 不工作:此應用程序無法啟動,因為無法初始化 Qt 平臺插件的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!
【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!