From Stack Overflow question What is the Python 3 equivalent of “python -m SimpleHTTPServer”:
SimpleHTTPServer
is for python2
, so you’re getting the error.
In python3
, The following works:
python -m http.server [<portNo>]
Because using Python 3, the module SimpleHTTPServer
has been replaced by http.server
, at least in Windows.