Running Python Script Terminal Raspberry Pi

I just bought a raspberry pi and I want to run a python script from the terminal. How can i do this?


source to share

2 answers

You either start your python interpreter using the script name as an argument:

$ python


Or do you start your script with



make it executable:

$ chmod u+x


and run it directly from the shell

$ ./


Or you can start your python interpreter and load your script interactively.



Usually you open a new terminal window and you type this:

$ python




All Articles