how to compile a directory to .pyc code example Example: compile python folder python3 -m compileall . -q