Linux / Unix: “-bash: python: command not found” error and solution

Posted on in Categories , , , , , , , , , , , last updated January 11, 2017

I am a new user and trying to run Python program. I have a cloud based VM/VPS and when I type python at the terminal of my server, I get the following error:
-bash: python: command not found

How do I solve this problem?