Set up Python simpleHTTPserver on Windows
Set up Python simpleHTTPserver on Windows
Set up Python simpleHTTPserver on Windows
Re: Set up Python simpleHTTPserver on Windows
From Stack Overflow question *[What is the Python 3 equivalent of "python -m SimpleHTTPServer"](https://stackoverflow.com/questions/7943751/what-is-the-python3-equivalent-of-python-m-simplehttpserver)*:
`SimpleHTTPServer` is for `python2`, so you're getting the error.
In `python3`, The following works:
```
python -m http.server []
```
Because using **Python 3**, the module `SimpleHTTPServer` has been replaced by `http.server`, at least in Windows.
`SimpleHTTPServer` is for `python2`, so you're getting the error.
In `python3`, The following works:
```
python -m http.server [
```
Because using **Python 3**, the module `SimpleHTTPServer` has been replaced by `http.server`, at least in Windows.