当前位置:网站首页>【使用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啦

边栏推荐
猜你喜欢

Teach you how to kill if else
![[C题目]力扣138. 复制带随机指针的链表](/img/f6/75f6821343944ced9f1cdec8dffe5c.png)
[C题目]力扣138. 复制带随机指针的链表

总结嵌入式C语言难点(2部分)

若依集成minio实现分布式文件存储

H.265视频流媒体播放器EasyPlayer.js集成时出现“SourceBuffer ”报错,该如何解决?

二叉搜索树的实现

【STM32学习3】DMA基础操作

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?

终于明白:有了线程,为什么还要有协程?

I interviewed a 985 graduate, and I will never forget the expression when answering the "performance tuning" question
随机推荐
用户之声 | 我与GBase的缘分
解道9-编程技术6
【模型压缩】实例分析量化原理
I interviewed a 985 graduate, and I will never forget the expression when answering the "performance tuning" question
golang刷leetcode:按位与结果大于零的最长组合
【c】操作符详解(一)
Intensive reading of the Swin Transformer paper and analysis of its model structure
【TypeScript】深入学习TypeScript模块化
二叉搜索树的实现
【3D视觉】深度摄像头与3D重建
# 医院管理系统完整项目代码以及数据库建表语句分享
SublimeText3 安装、配置项、包管理、常用必备插件、常用快捷键以及修改
JMeter的基本使用
golang 刷leetcode:祖玛游戏
Summary of @Transactional transaction invocation and effective scenarios
Command line startup FAQs and solutions
How many ways do you know the singleton pattern?
【TypeScript】深入学习TypeScript类(下)
H.265视频流媒体播放器EasyPlayer.js集成时出现“SourceBuffer ”报错,该如何解决?
Abstract Factory Pattern