当前位置:网站首页>【使用pyside2遇到的问题】This application failed to start because no Qt platform plugin could be initialized.
【使用pyside2遇到的问题】This application failed to start because no Qt platform plugin could be initialized.
2022-08-02 21:28:00 【小唐YiJiaTang】
项目场景:
安装使用pyside2时遇到的问题:
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
问题描述
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
原因分析:
问题是:缺少必要的dll文件,我们给它添加一个系统环境变量就可以.
解决方案:
1.找到安装pyside2的位置,可以通过在Anaconda prompt的当前python环境中输 pip show pyside2

2.找到Location所在文件下的pkugins/platforms,并复制该路径
3.win+r 输入sysdm.cpl
高级–环境变量
新建(w)
变量名QT_QPA_PLATFORM_PLUGIN_PATH
变量值D:\anaconda3\conda\envs\PyTorch\Lib\site-packages\PySide2\plugins\platforms
(刚刚复制的路径,每个人都不一样)
然后一路确定确定确定就可以了
最后重启电脑,就已经ok啦
边栏推荐
- Finally understand: With threads, why do we need coroutines?
- [C题目]力扣142. 环形链表 II
- 典型相关分析CCA计算过程
- 如何抓住NFT、元|宇|宙新趋势?
- apache calcite中关于model文件配置
- 快速学会ansible的安装
- golang刷leetcode:使数组按非递减顺序排列
- [c] Detailed explanation of operators (1)
- 【3D视觉】深度摄像头与3D重建
- JumpServer open source bastion machine completes Loongson architecture compatibility certification
猜你喜欢
What is the core business model of the "advertising e-commerce" that has recently become popular in the circle of friends, and is the advertising revenue really reliable?
【TypeScript】深入学习TypeScript模块化
word操作:单独调整英文字体
饥荒联机版Mod开发——制作简单的物品(三)
I interviewed a 985 graduate, and I will never forget the expression when answering the "performance tuning" question
Byte's internal technical map is amazing and practical
Mysql用户管理
【TypeScript】深入学习TypeScript类(上)
“百日行动”进行时:700余交通安全隐患被揪出
【C语言进阶】--指针典题剖析
随机推荐
任务四 机器学习库Scikit-learn
golang刷leetcode:巫师的总力量和
树形结构构造示例代码
【STM32学习3】DMA基础操作
IP协议(网际协议)
Teach you how to kill if else
命令行启动常见问题及解决方案
# 医院管理系统完整项目代码以及数据库建表语句分享
网络运维系列:健康检查的方式
You and I will meet the needs of: how to export the data in a MySQL simple ~!Practical!
Jar包启动通过ClassPathResource获取不到文件路径问题
[C题目]力扣1. 两数之和
matplotlib绘图的核心原理讲解(超详细)
golang刷leetcode:道路的最大总重要性
Vscode快速入门、 插件安装、插件位置、修改vscode默认引用插件的路径、在命令行总配置code、快捷键
牛客刷题:数组排序
你我都会遇到的需求:如何导出MySQL中的数据~ 简单!实用!
以赛促练-力扣第304场周赛反思(持续更新中)
如何理解 swing 是非线程安全 (原创)
Summary of @Transactional transaction invocation and effective scenarios