6

正如标题所说,我可以使用 nuitka 创建单个可执行文件吗?我尝试--portable--standalone选项,但它们似乎不起作用。谁能解释一下有什么--recurse-all选择?如果您有其他建议,请告诉我。我不想使用 pyinstaller,因为它启动我的应用程序太慢了。感谢您的任何回复。

4

2 回答 2

3

这似乎适用于我的 Qt 绑定:

Nuitka-0.5.27/bin/nuitka --standalone --recurse-all --recurse-on --recurse-directory --show-progress --show-modules --plugin-enable=qt-plugins --python-版本=2.7 --remove-output --output-dir=nuitka-build main.py

您最终将得到包含所有依赖项和二进制“main.exe”的“main.dist”目录。

于 2017-09-05T12:44:42.177 回答
0

您是否尝试过--onefile选项nuitka?这在linux上对我有用。

于 2021-07-04T04:14:32.880 回答