Configurer Python simpleHTTPserver sous Windows

Configurer Python simpleHTTPserver sous Windows


Source : Stack Overflow [windows]

D’apres la question Stack Overflow Quel est l’equivalent Python 3 de “python -m SimpleHTTPServer” :

SimpleHTTPServer est pour python2, c’est pourquoi vous obtenez l’erreur.

En python3, ce qui suit fonctionne :

python -m http.server [<portNo>]

Parce qu’en utilisant Python 3, le module SimpleHTTPServer a ete remplace par http.server, du moins sous Windows.