Commands.app

python

Execution

Run Python scripts or start interactive shell

Options & Flags
Available options for this command
-m module

Run library module as script

-c command

Execute Python command

Examples
Common usage examples

Run Python script

python script.py

Start simple HTTP server

python -m http.server

Execute Python command

python -c 'print("Hello")'