pyqt5打包报错:qt.qpa.plugin: Could not load the Qt platform plugin “windows“

笔者在将基于pyqt5库开发的界面打包为exe程序后,双击exe文件控制终端报错:

qt.qpa.plugin: Could not load the Qt platform plugin "windows" in "%QTDIR%\plugins\platforms\" 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, minimal, offscreen, windows, webgl.
**原因:**平台找不到插件,其实就是没找到qwindows.dll这个库文件

**解决办法:**手动把 qwindows.dll 复制到exe旁边,就可以运行了,此时插件就在当前目录。

相关推荐
牛肉胡辣汤2 分钟前
Blender + Three.js 开发讲解:从 .blend 到能转的产品页
开发语言·javascript·blender
惊讶的猫3 分钟前
Spring AOP
java·开发语言
机械设计扫地僧5 分钟前
用PYTHON工具对FAG INA CS 系列薄壁轴承进行初步选型筛选
python
ii_best22 分钟前
按键精灵手机助手 v5.2.1 实测:inputText 逐字延时 + 调试面板多行复制,安卓脚本开发的两个输入痛点一次解决
android·开发语言·智能手机·自动化·ai编程·按键精灵
波力海苔夹心脆67525 分钟前
C# StringBuilder 详解:字符串拼接为什么总说要用它?
开发语言·笔记·c#·.net·字符串·stringbuilder·入门教程
Wang's Blog30 分钟前
Java 项目实战: 交友项目 - 今日佳人:需求分析
java·开发语言·交友
老孟说禅33 分钟前
自动化测试入门(一)
开发语言·python
miofly40 分钟前
GitHub 今日推荐|Snapintosh:用 ARM EL2 监控器骗过内核,让骁龙芯片笔记本跑 macOS
python·开源·github
打工仔折腾 AI1 小时前
Linux 网络编程:从零掌握 TCP Socket 编程与 C++ 实战落地
linux·网络·人工智能·后端·python·tcp/ip·性能优化
余额瞒着我当琳1 小时前
C++11,发展历史浅谈,初始化列表和对象初始化,右值引用和移动语义
java·开发语言·c++·算法