Reputation: 11
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"
Upvotes: 0
Views: 73
Reputation: 1478
bluebird7 is right. You need to add python to your windows path. You can try this temporary alternative, type in cmd:
c:\python27\python.exe -m SimpleHTTPServer
The upper command will only work for python 2.7 and python needs to be installed here: c:\python27
Upvotes: 0
Reputation: 107337
i think You need to add that folder to your Windows Path this link can be useful :
https://docs.python.org/2/faq/windows.html
Upvotes: 1