This application failed to start because no Qt platform plugin could be initialized报错
Posted 无名joker
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了This application failed to start because no Qt platform plugin could be initialized报错相关的知识,希望对你有一定的参考价值。
This application failed to start because no Qt platform plugin could be initialized报错与解决
背景
开机后电脑一直跳出这个页面,每隔几分钟就跳出,影响电脑的使用。
情况分析
由于本机近几天并未下载软件、移动文件位置等操作,只有下载安装Anaconda,于是我将这个原因归结于Anaconda安装上。为了学习opencv我下载了opencv-python的主模块包和PyQt5。
学习经验
由于我经验不足,学习了在CSDN上大佬的经验链接,发现因为我添加了"QT_QPA_PLATFORM_PLUGIN_PATH"环境变量。
问题解决
该博客中提出可能是由于"QT_QPA_PLATFORM_PLUGIN_PATH"环境变量改变了OneDirve要初始化的Qt插件,导致Qt插件初始化失败。
我查看了一下我本地的环境变量’'QT_QPA_PLATFORM_PLUGIN_PATH’的值为"E:\\Anaconda3\\Library\\plugins"
直接将该环境变量删除后,电脑之后一直没有出现先前的问题。
后续
后续如果有其他的问题我会继续学习大佬的经验,继续更新。
更多有关qt问题解决方案集合
This application failed to start because no Qt platform plugin could be initialized问题解决合集
以上是关于This application failed to start because no Qt platform plugin could be initialized报错的主要内容,如果未能解决你的问题,请参考以下文章
This application failed to start because no Qt platform plugin could be initialized
This application failed to start because no Qt platform plugin could be initialized.
This application failed to start because no Qt platform plugin could be initialized
使用 pyinstaller 将 python 文件转换为 .exe 给出: This application failed to start because no Qt platform plugi
This application failed to start because no Qt platform plugin could be initialized报错
pyqt5-tools 使用qtdesigner错误-This application failed to start because no Qt platform plugin could be i