我使用以下模块创建了一个现代 GUI
from PySide6.QtCore import * # type: ignore
from PySide6.QtGui import * # type: ignore
from PySide6.QtWidgets import * # type: ignore
后来使用 pyinstaller 的命令 --onefile 创建了一个独立的可执行文件。该文件已创建,但当我运行它时,它显示以下错误。
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.