Can I create single file executable with nuitka?

11k views Asked by At

As title says, can I create single file executable with nuitka? I tried --portable and --standalone option but they does not seem to work. And can anyone please explain me what is the --recurse-all option? And if you have some other recommendations please tell me. I dont want to use pyinstaller because its too slow to start my app. Thanks for any response.

2

There are 2 answers

1
nvd On

This seems to work on my side with Qt bindings:

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

You will end up with "main.dist" directory with all the dependencies and the binary "main.exe".

0
AudioBubble On

Have you tried --onefile option with nuitka?? This worked for me on linux.