python3 -m compileall . -q
Here is what the above code is Doing:
1. We’re using the -m flag to tell Python to run a module as a script.
2. The module we want to run is compileall.
3. The -q flag tells compileall to be quiet.
4. The dot tells compileall to compile everything in the current directory.