Tuesday, December 6, 2016

Run Python in windows


Steps:


  • Install Python on your machine. If it is already installed you could see "Python 3.6" folder in all programs section.

  • Go to command prompt, and then go the folder where python is installed. Here you enter "python", then you will see python version displayed on command prompt, if software is not installed you would see 'python is not recognized as an internal or external command'
  • From command prompt you could run python scripts. Below is the approach:
  • c:.....Programs\Python\Python36> python <filename.py>  ----- this will run the python file.
Syntax to run the python script is "python <filename.py>


Source: Some of the information came from "Python Programming for Beginners: An Introduc…(Kindle Edition)"

1 comment:

  1. What if you get python is not recognized as an internal or external command.....

    ReplyDelete