Running Python Script Terminal Raspberry Pi
2 answers
You either start your python interpreter using the script name as an argument:
$ python script.py
Or do you start your script with
#!/bin/python3
make it executable:
$ chmod u+x script.py
and run it directly from the shell
$ ./script.py
Or you can start your python interpreter and load your script interactively.
+6
source to share