DEV Community

Discussion on: Python: Compile standalone executable with nuitka

Collapse
 
k1dv5 profile image
Kidus Adugna

I tried this on Windows with nuitka --standalone --recurse-all --recurse-stdlib --plugin-enable=tk-inter script.py, hoping it would reduce the size of the bundle compared to Pyinstaller but the opposite happened (51.7MB vs 20.8MB). Is there anything I don't know?

Collapse
 
k4ml profile image
Kamal Mustafa

Have you checked this?

nuitka.net/doc/user-manual.html#wi...

Collapse
 
k1dv5 profile image
Kidus Adugna

That worked, removed a good chunk and reduced it to about 28MB, its more than Pyinstaller's 20MB but still. Thanks!