How to check the syntax of a Python script without executing it? May 16, 2024 Run this: $ python3 -m py_compile MYSCRIPT.py