打包的exe文件py pyinstaller无法使用

问题描述 投票:0回答:1

我已经在 AIX 7.1 上安装了 pyinstaller,我是从源代码安装的。 当我尝试打包一个exe文件时,它起作用了。但是当我执行exe文件时。它报告如下错误消息。

[5112318]Failed to parse run-time options!
Segmentation fault(cordump)

这是我的 .py 文件

#!/usr/bin/env python3
printf('hello world')

我的python3版本是3.9.6,pyinstaller版本是6.2.0 有人可以帮我解决这个问题吗?或者给我一些建议,比如如何获得更准确的失败信息,谢谢。

我尝试用谷歌搜索,但没有遇到同样问题的文章。

pyinstaller aix
1个回答
0
投票

检查兼容性: 确保您的 PyInstaller 和 Python 版本与 AIX 7.1 兼容。

重建 PyInstaller: 从源代码重建 PyInstaller 以确保它是专门为您的 AIX 环境构建的。

# Clone PyInstaller repository
git clone https://github.com/pyinstaller/pyinstaller.git

# Switch to the PyInstaller directory
cd pyinstaller

# Build PyInstaller
python3 ./bootstrap.py
© www.soinside.com 2019 - 2024. All rights reserved.