First, install it correctly via Synaptic or apt-get:
$ sudo apt-get install python3
Secondly, use python3 to execute it from the terminal. If you are writing .py files, insert shebang in the first line of the file:
#!/usr/bin/env python3 print("Hello world!")
or
#!/usr/bin/python3 print("Hello world!")
To run them without typing python3 behind it, run chmod u+x in the file.
Then you are good to go. :)
user1519537
source share