This guide will show you how to run a Python script in the Mac Terminal (command line) in either Mac OS X or MacOS.
Simply navigate to the script directory and type:
python script_name.py This will use the python interpreter to run your script.
You might need to specify the full path to the python interpreter.
which python should produce:
/usr/bin/python So you might try running:
/usr/bin/python script_name.pyWe’re hiring!
Are you a passionate writer? We want to hear from you!
©2020 Howchoo, LLC
SitemapTerms of usePrivacy policyDMCA requestsCA Residents: Do Not Sell My Personal InformationWant to support Howchoo? When you buy a tool or material through one of our Amazon links, we earn a small commission as an Amazon Associate.