开发环境
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执行环境
Windows Server 2008 SP2在情况1,2:发生以下错误。
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来避免这个错误?
发布于 2019-03-12 06:33:39
使用Anaconda:
conda install -c conda-forge pyside2 但这是一个较旧的版本。(v5.6)到目前为止,我在使用旧版本时没有遇到任何问题。我在新版本中遇到了同样的问题,但我需要它,因为旧版本不支持QtCharts
https://stackoverflow.com/questions/54911423
复制相似问题