3 ms·
`pyinstaller --onefile <script.py> [secondscript.py] [...]` Statically links all the dependencies and the Python interpreter. Other machine can just run the ex
by SAI_Peregrinus 4y ago
`pyinstaller --onefile <script.py> [secondscript.py] [...]`
Statically links all the dependencies and the Python interpreter. Other machine can just run the executable, no need to set up a venv+pip.
Of course the binary is huge, but IME it works. Unfortunately it can't cross-build, so you need a VM or multiple machines set up with the dev environment to run pyinstaller for each OS.