[pyqt5]解决could not find or load the Qt platform plugin windows

PyQt5+python3+pycharm开发环境配置时,遇到了This
application failed to start because it could not find or load the Qt platform plugin "windows".的问题。导致无法通过pycharm运行Pyqt5的应用

出现该问题的原因是环境变量没有添加。

解决方法:

在环境变量中增加:

QT_QPA_PLATFORM_PLUGIN_PATH

C:\Python34\Lib\site-packages\PyQt5\plugins                                      <<-----------------这是我PyQt5的plugins文件夹所在位置

时间: 2024-08-14 17:41:49

[pyqt5]解决could not find or load the Qt platform plugin windows的相关文章

This application failed to start because it could not find or load the Qt platform plugin &quot;windows&quot;

发生以上错误的Qt版本应该是Qt 5.0.0以上的版本吧. 出现标题错误的大致原因是:因为Qt是跨平台的库,需要依赖于相关的平台库.有个Platform的文件夹,里面有相关dll文件. references: http://www.cnblogs.com/naive/p/3568887.html http://stackoverflow.com/questions/20495620/qt-5-1-1-application-failed-to-start-because-platform-plu

解决Qt编译动态链接库could not find or load the Qt platform plugin &quot;windows&quot; in.问题

最近用Qt5做了一个项目的界面,在编译成可执行文件EXE之后,运行文件,提示: This application failed to start because it could not find or load the Qt platform plugin "windows"in "". Reinstalling the application may fix this problem. 查了很多资料,试了很过方法,后来发现将D:\Anaconda2\Librar

问题解决:it could not find or load the Qt platform plugin &quot;windows&quot;

问题:在使用Qt5.3.2编写程序并release,文件夹中已经添加了必要的dll,但在其他机子上运行程序失败,出现了下面的情况: 解决方法一:在C:\Qt\Qt5.3.2\5.3中进入mingw482_32文件夹,将plugins\platforms整个目录复制exe执行文件所在的文件夹目录中,程序即可运行. 以下是网上几个其他方法的总结: 解决方法二:复制你exe需要的qt插件,首先要在源程序中的main函数中加上QApplication::addLibraryPath("./plugins

it could not find or load the Qt platform plugin &quot;windows&quot;

本机环境:win 10 + Qt 5.6 问题: 在使用Qt5.6编写程序并release,文件夹中已经添加了必要的dll,但在其他机子上运行程序失败,出现了下面的情况: 解决办法: 在D:\Qt\5.6中进入mingw49_32文件夹(ps:具体路径看个人),将plugins\platforms整个目录复制exe执行文件所在的文件夹目录中,程序即可运行 原文地址:https://www.cnblogs.com/Geek-H/p/10626539.html

This application failed to start because it could not find or load the Qt platform plugin &quot;xcb&quot;.

1.  copy      libQt5DBus.so.5 2.  add    QT_PLUGIN_PATH blog.csdn.net/windows_nt/article/details/24205671 his application failed to start because it could not find or load the Qt platform plugin "xcb". 分类: Qt linux 2014-04-21 00:02 7793人阅读 评论(5)

pyqt5程序使用py2exe打包后运行时报找不到Qt platform plugin ‘windows’错误

pyqt5程序使用py2exe打包后运行时报找不到Qt platform plugin 'windows'错误 现象描述: 64位windows系统下直接将pyqt5的plugins下的platforms文件夹复制到exe相同目录即可,但在32位系统下一直报找不到Qt platform plugin 'windows'错误. 解决方案: 在exe同目录下新建plugins文件夹,然后将platfroms文件夹移到新建的文件夹下,同时修改main方法,添加以下代码: QApplication.ad

QT5 Failed to load platform plugin &quot;windows&quot; 终极解决方案 命令行问题

Failed to load platform plugin "windows" 这个错误在双击exe执行时不会出现,当传递命令行参数时出问题 ,解决方法: int main(int argc, char *argv[]) { Q_INIT_RESOURCE(rc); //解决库路径问题[email protected] QTextCodec *xcodec = QTextCodec::codecForLocale() ; QString exeDir = xcodec->toU

解决方法:Could not load file or assembly &#39;WebGrease, Version=1.5.1.25624, Culture=neutral, PublicKeyToken=31bf3856ad364e35&#39; or one of its dependencies.

最近使用VS2015调试ASP.NET 程序遇到了该问题: 在网上找了很多方法都不能解决,最后自己解决了,方法如下: 在project -> NuGet管理中找到已安装的所有程序:将Web Optimization程序包的版本更改为更低的V1.0版本即可. 现在程序可以正常运行了. 解决方法:Could not load file or assembly 'WebGrease, Version=1.5.1.25624, Culture=neutral, PublicKeyToken=31bf38

解决bug:Couldn&#39;t load ClientCore from loader dalvik.system.PathClassLoader

当出现错误: java.lang.UnsatisfiedLinkError: Couldn't load ClientCore from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/cn.gloud.client-2.apk"],nativeLibraryDirectories=[/data/app-lib/cn.gloud.client-2, /vendor/lib, /system/li