ryanbraganza ryanbraganza - 1 year ago 90
Python Question

What is the python3 equivalent of "python -m SimpleHTTPServer"

What is the python3 equivalent of

python -m SimpleHTTPServer

Answer Source

From the docs:

The SimpleHTTPServer module has been merged into http.server in Python 3.0. The 2to3 tool will automatically adapt imports when converting your sources to 3.0.

So, your command is python3 -m http.server.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download