【发布时间】:2020-05-25 14:08:42
【问题描述】:
我尝试使用 pyinstaller 模块将我的 python gui 应用程序 (.py) 转换为可执行文件 (.exe)。我在终端中运行了以下命令 -
pyinstaller.exe --onefile -w sourcecode.py
该过程已成功完成,我得到了 .exe 文件(sourcecode.exe)以及 pycache 和 sourcecode 等额外文件夹。但是,当我尝试通过双击运行 .exe 文件/应用程序时,应用程序没有启动并出现错误。请帮忙。
【问题讨论】:
标签: python python-3.x pyinstaller