I'm trying to use this commmand:
python -m SimpleHTTPServer
but it's not working. I'm guessing that it isn't working because I'm running that through Windows Command Prompt. How does one make that function?
The error I am getting from Command Prompt is:
"'python' is not recognized as an internal or external command, operable program or batch file"
Best Answer
By default,
python
is not registered as a command in the windows command prompt. (Be it a file in thePATH
, a macro or something else entirely).The solution is to simply type the whole path to the
python.exe
. I installed Python toC:\Python27
so all I need to type is