Configurar Python SimpleHTTPServer en Windows [duplicar]


Esta pregunta ya tiene una respuesta aquí:

Quiero configurar Python SimpleHTTPServer en Windows XP. Tengo Python instalado en mi computadora. Estoy ejecutando el siguiente comando:

python -m SimpleHTTPServer 8888

Pero estoy recibiendo el error:

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

Es SimpleHTTPServer para Python disponible en Windows? En caso afirmativo, ¿qué hago para configurar el servidor?

Author: Peter Mortensen, 2013-06-27

1 answers

Desde la pregunta de desbordamiento de pila¿Cuál es el equivalente de Python 3 de "python-m SimpleHTTPServer":

Las siguientes obras para mí:

python -m http.server [<portNo>]

Porque estoy usando Python 3 el módulo SimpleHTTPServer ha sido reemplazado por http.server, al menos en Windows.

 378
Author: codeofnode,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2017-05-23 12:03:04