錯誤提示
在打開PyQt5-tools中的Designer.exe時,提示如下錯誤:
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
,此時問題應該已解決。
參考
提示
如果你同樣遇到該問題並通過此貼解決了問題,你可以留下你的評論來提示后來人該方法是可行的。