问题描述:

在Python程序中使用到Pyside2进行图形界面搭建,并使用Pyinstaller将程序打包为独立可执行文件后,双击.exe文件,出现报错:

"qt.qpa.plugin: Could not load the Qt platform plugin “windows” in “…” even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: direct2d(from …), minimal(from …), offscreen(from …), windows, direct2d, minimal, offscreen, windows."

具体见下图:

解决方法:

将Anaconda该虚拟环境路径下的文件:

\Anaconda3\Lib\site-packages\PySide2\plugins\platforms\qdirect2d.dll

\Anaconda3\Lib\site-packages\PySide2\plugins\platforms\qminimal.dll

\Anaconda3\Lib\site-packages\PySide2\plugins\platforms\qoffscreen.dll

\Anaconda3\Lib\site-packages\PySide2\plugins\platforms\qwindows.dll

\Anaconda3\Lib\site-packages\PySide2\plugins\platforms\qwebgl.dll

将以上几个文件复制或覆盖到该文件夹:

\(.exe程序所在路径)\PySide2\plugins\platforms\Anaconda3\Library\plugins\platforms\

【已解决】报错qt.qpa.plugin: Could not load the Qt platform plugin “windows“ in “...“ even though it was相关推荐

  1. 【问题篇】Springboot解决报错“java.sql.SQLException: Unable to load authentication plugin ‘caching_sha2_passw”

    场景:从代码仓库拉取以前的代码,运行时发现报错"java.sql.SQLException: Unable to load authentication plugin 'caching_sh ...

  2. Python报错it could not find or load the Qt platform plugin windows

    在用python画图的时候,弹出来一个小框,说是"it could not find or load the Qt platform plugin "windows"&q ...

  3. Ubuntu18.04下解决Qt出现qt.qpa.plugin:Could not load the Qt platform plugin “xcb“问题

    Ubuntu18.04下解决Qt出现qt.qpa.plugin:Could not load the Qt platform plugin "xcb"问题 问题描述 定位问题 解决 ...

  4. 解决qt.qpa.plugin: Could not load the Qt platform plugin “xcb“ in ““ even though it was found.

    项目场景: 在使用pyqt5出现问题,让人真的很头疼哇 问题描述 具体问题如下: qt.qpa.plugin: Could not load the Qt platform plugin " ...

  5. Ubuntu20.04下解决Qt出现qt.qpa.plugin:Could not load the Qt platform plugin “xcb“ 问题

    问题描述 python调用matplotlib.pyplot库进行图形绘制时弹出错误提示: qt.qpa.plugin: Could not load the Qt platform plugin & ...

  6. Ubuntu16.04下Python程序出现错误qt.qpa.plugin: Could not load the Qt platform plugin xcb解决方法

    问题描述 我在运行一个使用Pyqt5库的Python程序时,出现报错: qt.qpa.plugin: Could not load the Qt platform plugin "xcb&q ...

  7. 【Qt】Ubuntu18.04下解决Qt出现qt.qpa.plugin:Could not load the Qt platform plugin “xcb“问题

    1.问题描述 在ubuntu18.04中第一次安装QT5,运行时报错 qtcreator.sh qt.qpa.plugin: Could not load the Qt platform plugin ...

  8. VS中编译带Qt的他人项目,环境搭建及解决报错

    提示:文章写完后,目录可以自动生成,如何生成可参考右边的帮助文档 VS中编译带Qt的他人项目,环境搭建及解决报错 一.安装VS及Qt及Qt VS Tools 二.报错及解决办法 1.未能找到程序集&q ...

  9. 出现 qt.qpa.plugin: Could not load the Qt platform plugin “xcb“ in 的解决方法

    目录 1. 问题所示 2. 解决方法 3. 补充 1. 问题所示 出现如下问题: (py17)kkjz@kkjz-ThinkStation-P330:yolov5$python main.py QOb ...

最新文章

  1. 区域填充与击中击不中变换
  2. php中的解析范围符,PHP 的范围解析操作符 (::) 的含义分析说明
  3. [Grid Layout] Specify a grid gutter size with grid-gap
  4. 普罗米修斯监控系统_基于Prometheus和Grafana的监控平台 - 环境搭建
  5. Linux文件锁学习-flock, lockf, fcntl
  6. 关于双黑洞和引力波,LIGO科学家回答了这7个你可能会关心的问题
  7. 格雷码 matlab,基于格雷码的结构光重建代码(MATLAB版本)
  8. 使用Python实现生产者消费者问题
  9. xenu死链检测工具使用教程
  10. 【docx4j】docx4j操作docx,实现替换内容、转换pdf、html等操作
  11. WIN7 旗舰版已激活但还是黑屏的解决方法
  12. android化学制图软件,虚拟化学实验室(Chemist)
  13. vml时序表_VML代码分析是怎么分析的
  14. 计算机显示器有几个接口,电脑显示器的接口有几种?有哪些区别又要如何挑选呢?长知识了!...
  15. tiup uninstall
  16. 算法题 - 卡牌游戏问题 - Python
  17. 秀和vs太田雄藏(依田纪基讲定式,欺骗感情)
  18. Maven学习(基础部分)
  19. Chrome(谷歌浏览器) 程序开发32个经常使用插件
  20. 打开软件提示丢失vcruntime140.dll下载安装详细教程

热门文章

  1. 加拿大计算机转学案例,在加拿大转学步骤详解
  2. 区块链开发技术路线的思考(二)
  3. android语音合成Demo
  4. 硅谷色情谷的良心,XHamster的内容审核竟然比Facebook强?
  5. 【转载】 塔防设计创新点
  6. WebService客户端调用常见5种方式
  7. 【SOLIDWORKS】多转折引线线粗大小的设置技巧
  8. linux-sfdisk用法
  9. WEB安全-OWASP TOP10
  10. 14|跳数索引:后起新秀ClickHouse