Set up Python simpleHTTPserver on Windows
--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Dreaming in Puzzles
--
Chapters
00:00 Set Up Python Simplehttpserver On Windows
00:25 Accepted Answer Score 652
00:49 Thank you
--
Full question
https://stackoverflow.com/questions/1735...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#python #windows #python3x #simplehttpserver
#avk47
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Dreaming in Puzzles
--
Chapters
00:00 Set Up Python Simplehttpserver On Windows
00:25 Accepted Answer Score 652
00:49 Thank you
--
Full question
https://stackoverflow.com/questions/1735...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#python #windows #python3x #simplehttpserver
#avk47
ACCEPTED ANSWER
Score 652
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.