python in linux world as a CLI command almost always means python2 and not python3. Make sure that you have python2 installed (sudo apt install python).
DO NOT alias python to python3 - this is some bad advice!
To run python3, you have to specify python3 on the CLI.