Wednesday, January 23, 2019

Set up Python simpleHTTPserver on Windows




I want to set up Python SimpleHTTPServer on Windows XP. I have Python installed on my computer. I am executing the following command:




python -m SimpleHTTPServer 8888


But I am getting the error:



C:\Python33\python.exe: No module named SimpleHTTPServer


Is SimpleHTTPServer for Python available on Windows? If yes, what do I do to set up the server?



Answer



From question What is the Python 3 equivalent of "python -m SimpleHTTPServer":



The following works for me:



python -m http.server []


Because I am using Python 3 the module SimpleHTTPServer has been replaced by http.server, at least in Windows.


No comments:

Post a Comment

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...