python3 -m zipapp myapp/ -o myapp.pyz

Category: Python & pip

python3 -m zipapp myapp/ -o myapp.pyz

Pack a Python app directory into a self-contained .pyz executable

Bundles a Python app directory into a single .pyz file that can be run as an executable.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.