Welcome to the Treehouse Community
Looking to learn something new?
Abhinav Ananth488 Points
"Hello World" program not running
I wrote a sample program using the python IDLE for showing Hello world as the output using the print() function. but when i run the console and type python sample_program.py (I have saved the file as sample_program.py) it gives back the error message as follows: "python' is not recognized as an internal or external command, operable program or batch file." I saved the file on the desktop. I am running windows. What might be the issue?
Steven Parker215,959 Points
Windows doesn't come with Python. You'll need to download and install it if you want to run it on your local machine.
You can download Python for Windows here. Be sure to get Python 3.
If you have already installed it, perhaps its folder did not get added to your PATH system environment variable. If so, you may need to add it manually.