[Python] How to Run Programs from Mac Terminal

Tadashi Shigeoka ·  Fri, August 26, 2011

I’ll introduce how to run Python programs from Mac’s terminal.

Python

For example, let’s say you want to execute a Python program called test.py.

In this case, you can navigate to the directory where the test.py file is located and run it by specifying just the filename:

python test.py

Reference Information

That’s all from the Gemba.