How to run python files on python 3.7 on windows command prompt?
Answers
You can run the script by going "Run --> Run Module" or simply by hitting F5 (on some systems, Fn + F5). Before running, IDLE prompts you to save the script as a file. Choose a name ending in .py ("hello.py") and save it on Desktop. The script will then run in the IDLE shell window.
Answer:
In order to do this you must have python added to the PATH while installation.
All you do after that is you type: PYTHON <NAME>.py
The name is case sensitive.
Replace the <NAME> to your script name. eg. scraper.py
in addition don't forget that the cmd windows working directory should be the same as your python script.
you can google how to open cmd at a given directory as there are multiple ways to go around this.
All of this might seem complicated but is very simple, I do this on a daily basis.