Skip to content Skip to sidebar Skip to footer

How To Start Python Simplehttpserver On Windows 10

I recently bought a Windows 10 machine and now I want to run a server locally for testing a webpage I am developing. On Windows 7 it was always very simple to start a HTTP Server v

Solution 1:

Ok, so different commands is apparently needed.

This works:

C:\pathToIndexfile\py -m http.server

As pointed out in a comment, the change to "http.server" is not because of windows, but because I changed from python 2 to python 3.

Solution 2:

If you already have python 3 installed, just run:

python -m http.server 

Solution 3:

On Windows, neither python nor python3 worked for me; the program just hangs there, doing nothing.

However, I got it to work via ipython:

ipython-mhttp.server8000

You need to install IPython beforehand, though:

pip install ipython

Post a Comment for "How To Start Python Simplehttpserver On Windows 10"