Articles → Python → Running Python Program Using Command LineRunning Python Program Using Command LineIn this article, we will run the python program using the command line.Sample Program Consider the following python program: -Python Is Not A Recognized Command If you are getting this error, then you should set the path. To set the path, open the command prompt. Write the following command: -path = path_of_python.exeRunning The Program To run the program, open the command prompt. Write the following command: -Python c:\temp\Hello.pyWhere ‘c:\temp’ is the path of the python file.Posted By - Karan Gupta Posted On - Monday, January 28, 2019 Query/Feedback Your Email Id** Subject* Query/Feedback Characters remaining 250**
path = path_of_python.exe
Python c:\temp\Hello.py
Query/Feedback