0

I am using this tutorial and specifically having trouble with the part that says:

"To run a Python web server: Open up a new terminal window. Via the command line, navigate into the directory that you want served. For example, if your project folder is in your Desktop folder on your Mac, you could type: cd ~/Desktop/project-folder. Enter python -m SimpleHTTPServer 8888 &. "

But when I try that, it says "python" is not recognized as an internal or external command. Is there something I need to be adding to a PATH variable or something?

Thanks!

2
  • do you have python installed? It's a pretty dumb question but I still gotta ask Commented Sep 10, 2015 at 19:37
  • Good question! I do. At least, I think I do. When I type 'Python' into the Windows start bar something comes up saying 'Python (command line)' and I click on it and it takes me to a command prompt with C:\Python27\python.exe in the title bar. Commented Sep 10, 2015 at 19:40

1 Answer 1

1

It should work on Windows just the same, try

C:\Python27\python.exe -m SimpleHTTPServer 8888

If you want to be able to call it with simply python ..., see e.g. Adding Python Path on Windows 7 or Installing Python 2.7 on Windows 8 for adding Python to Windows PATH.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.