PyQt5 Designer is not working: 此应用程序无法启动,因为无法初始化 Qt 平台插件 [英] PyQt5 Designer is not working: This application failed to start because no Qt platform plugin could be initialized

查看:151
本文介绍了PyQt5 Designer is not working: 此应用程序无法启动,因为无法初始化 Qt 平台插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对 PyQt5 Designer 有问题.我使用 -pip install PyQt5 然后 -pip install PyQt5-tools 安装 PyQt一切都没问题.但是当我尝试运行 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?

推荐答案

  1. 转到 =>Python38>lib>site-packages>PyQt5>Qt>插件
  2. 在插件中复制平台文件夹
  3. 然后去Python38>lib>site-packages>PyQt5_tools>Qt>bin
  4. 在此处粘贴文件夹.复制并替换.

这肯定会奏效..现在你可以使用设计器工具 go 并用 python 做一些有趣的事情......

This will surely work.. Now you can use designer tool go and do some fun with python...

这篇关于PyQt5 Designer is not working: 此应用程序无法启动,因为无法初始化 Qt 平台插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆