python - Pyinstaller "Failed to execute script pyiboot01_bootstrap"

标签 python pyinstaller

我正在使用 pyinstaller 为 python 程序生成可执行文件。但是,每当我尝试使用生成的可执行文件时,我都会收到一个消息窗口,显示“无法执行脚本...”。

我正在运行的命令是 pyinstaller -w run.py。但是,当使用 --debug 选项运行时,会出现不同的错误。 “无法执行脚本 pyiboot-1_bootstrap”。在此错误之后,它会终止程序。

我尝试了 -F 选项,但这并没有改变结果。我为项目创建的所有文件都在同一个目录中。我确实收到了未包含 dll 的警告,但我 resolved that .

最佳答案

Pyinstaller 不喜欢我使用的内置 quit() 函数。

改为使用sys.exit()来关闭程序。

关于python - Pyinstaller "Failed to execute script pyiboot01_bootstrap",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56957022/

相关文章:

python - 在openCV中删除没有运动的帧

python - 无法在 z3py 中提取 Z3 EnumSort 的值

python - 加速使用 Pyinstaller 创建的 .exe

python - Pyinstaller EXE 在启动时崩溃

python - 在两个 python 环境中使用 pyinstaller

python - scikit-learn/python 中带有字符的随机森林

javascript - Axios 将 index.html 内容返回给前端(React.js)

python - pyspark 错误 : AttributeError: 'SparkSession' object has no attribute 'parallelize'

python - pyinstaller 将我的 Python 字节码放置在哪里?

python-3.x - 模块未找到错误 : No module named 'Crypto.Math'