将 pyinstaller 用于 pyside6 和 qt

问题描述

我使用以下模块创建了一个现代 GUI

from PySide6.QtCore import *  # type: ignore
from PySide6.QtGui import *  # type: ignore
from PySide6.QtWidgets import *  # type: ignore

之后使用 pyinstaller 的命令 --onefile 创建了一个独立的可执行文件。该文件已创建,但当我运行它时,它显示以下错误

the screenshot is attached for your reference

qt.qpa.plugin: Could not find the Qt platform plugin "windows" in ""
This application Failed to start because no Qt platform plugin Could be initialized. Reinstalling the application may fix this problem.

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)