How To Run A Python Script On The Osx Terminal
1
Use the python command
Simply navigate to the script directory and type:
python script_name.pyThis will use the python interpreter to run your script.
2
If it doesn’t work…
You might need to specify the full path to the python interpreter.
which pythonshould produce:
/usr/bin/pythonSo you might try running:
/usr/bin/python script_name.py