首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >PyQt5 & PySide2 /无法在"“中加载Qt平台插件"windows”,即使找到它也是如此

PyQt5 & PySide2 /无法在"“中加载Qt平台插件"windows”,即使找到它也是如此
EN

Stack Overflow用户
提问于 2019-02-28 01:40:03
回答 1查看 1.7K关注 0票数 0

开发环境

代码语言:javascript
复制
 1. Windows 10 / Python 3.6.8 / Pyinstaller 3.4 / PyQt5 5.10
 2. Windows 10 / Python 3.6.8 / Pyinstaller 3.4 / PySide2 5.11.0
 3. Windows 10 / Python 3.6.8 / Pyinstaller 3.4 / PyQt5 5.9.2

执行环境

代码语言:javascript
复制
Windows Server 2008 SP2

在情况1,2:发生以下错误。

代码语言:javascript
复制
qt.qpa.plugin: Could not load the Qt platform plugin "windows" in "" 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: minimal, offscreen, webgl, windows.

但是情况3:没有错误。

Qt 5.10以上版本的测试结果与案例1、2相同。

我必须使用PySide2。但是PySide2没有比Qt 5.9.2更低的版本。

有没有办法使用PySide2来避免这个错误?

EN

回答 1

Stack Overflow用户

发布于 2019-03-12 06:33:39

使用Anaconda:

代码语言:javascript
复制
conda install -c conda-forge pyside2 

但这是一个较旧的版本。(v5.6)到目前为止,我在使用旧版本时没有遇到任何问题。我在新版本中遇到了同样的问题,但我需要它,因为旧版本不支持QtCharts

票数 -1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/54911423

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档