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

 

posted @ 2020-07-22 17:19  剑峰随心  阅读(1360)  评论(0编辑  收藏  举报