How to run Python script on terminal?

SnakeEyes picture SnakeEyes · Feb 1, 2014 · Viewed 482.1k times · Source

I want to run a Python script in Terminal, but I don't know how? I already have a saved file called gameover.py in the directory "/User/luca/Documents/python".

Answer

ferdynator picture ferdynator · Feb 1, 2014

You need python installed on your system. Then you can run this in the terminal in the correct directory:

python gameover.py