pycharm中应用PPOCRLabelv2时遇到的Qt bug:This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.


bug提示如上所示:This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

尝试一:https://www.cnblogs.com/hywing/p/18240487
(安装Qt过程可参考,但debug无果)
尝试二:https://blog.csdn.net/m0_62919535/article/details/129014615
(PyCharm配置PyQt5设计UI写得挺好,但我的问题不是出在这里)
尝试三:https://stackoverflow.com/questions/41994485/how-to-fix-could-not-find-or-load-the-qt-platform-plugin-windows-while-using-m/55617809#55617809
(解决了,虽然刚开始就在中文搜索引擎下get到大概是环境变量的问题,但是不知道怎么搞,so stackoverflow yyds!)

最终解决方案:

此间还涉及到,我没用conda环境的问题,还只是简单又麻烦的virtualenv,姑且按下不表

最后,附上本次bug出现场景:

点击查看代码
# 安装与运行PPOCRLabel
pip install PPOCRLabel  # 安装

# 选择标签模式来启动
PPOCRLabel --lang ch  # 启动【普通模式】,用于打【检测+识别】场景的标签
PPOCRLabel --lang ch --kie True  # 启动 【KIE 模式】,用于打【检测+识别+关键字提取】场景的标签

最终解决效果(打开了,困扰一周,竟然又又又死在环境配置上了):

posted @   wangpan0523  阅读(95)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 一个费力不讨好的项目,让我损失了近一半的绩效!
· 清华大学推出第四讲使用 DeepSeek + DeepResearch 让科研像聊天一样简单!
· 实操Deepseek接入个人知识库
· CSnakes vs Python.NET:高效嵌入与灵活互通的跨语言方案对比
· 易语言 —— 开山篇
点击右上角即可分享
微信分享提示