python3 -m compileall .

Category: Python & pip

python3 -m compileall .

Recursively compile all .py files in the current directory

Recursively compiles all .py files in the directory to .pyc bytecode files.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.