Describe how to package executable with Nuitka #2165
Replies: 5 comments 8 replies
-
Hi @mrhanCH! |
Beta Was this translation helpful? Give feedback.
-
Try my command line, I have tested that it can package and run normally, but the packaging speed is particularly slow. nuitka --mingw64 --standalone --show-progress --nofollow-imports --output-dir=out -o test test.py |
Beta Was this translation helpful? Give feedback.
-
Do you have a test demonstration, I tried but it seems that a lot of environments are missing when packaged from nicegui import ui
ui.label(text='233')
ui.run(native=True, reload=False) import subprocess
cmd = 'python -m nuitka --mingw64 --standalone --show-progress --nofollow-imports --output-dir=out test.py'
subprocess.call(cmd) Here's my code |
Beta Was this translation helpful? Give feedback.
-
Additionally, if you do not wish to use |
Beta Was this translation helpful? Give feedback.
-
my nuitka+nicegui single executable build on ubuntu 24.04 is 56MB. nicegui under site-package has 50MB, uvloop is 17MB from fastapi. for a simple fastapi nuitka package it's 27MB. I don't know how yet, but I believe these sizes can be further trimmed. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The current Pyinstaller packaging method carries the risk of being decompiled, even if key encryption is used, it is useless. Compared to using Nuitka packaging, it is a safer way. Will the Nuitka packaging method be introduced in the future?
Beta Was this translation helpful? Give feedback.
All reactions