【问题标题】:Can I create single file executable with nuitka?我可以使用 nuitka 创建单个文件可执行文件吗?
【发布时间】:2017-08-28 13:15:29
【问题描述】:
正如标题所说,我可以使用 nuitka 创建单个可执行文件吗?我尝试了--portable 和--standalone 选项,但它们似乎不起作用。谁能解释一下--recurse-all 选项是什么?如果您有其他建议,请告诉我。我不想使用 pyinstaller,因为它启动我的应用程序太慢了。感谢您的回复。
【问题讨论】:
标签:
python
windows
compilation
executable
nuitka
【解决方案1】:
这似乎适用于我的 Qt 绑定:
Nuitka-0.5.27/bin/nuitka --standalone --recurse-all --recurse-on --recurse-directory --show-progress --show-modules --plugin-enable=qt-plugins - -python-version=2.7 --remove-output --output-dir=nuitka-build main.py
您最终会得到包含所有依赖项和二进制“main.exe”的“main.dist”目录。
【解决方案2】:
你试过--onefile选项和nuitka吗?这在 linux 上对我有用。