MacOS – Run through terminal PYTHON

macospythonterminal

Is there a way on a mac to make it so when you click on a python script it runs python filename.py through terminal?

Best Answer

Yes, this is possible with multiple methods. The easiest is simply right-clicking the script, opening the Get Info window and changing Open With to Python Launcher (x.x.x).