Python 3 equivalent of SimpleHTTPServer

0 votes

Can anyone tell the equivalent of python -m SimpleHTTPServer in Python 3?

Nov 20, 2018 in Python by ana1504.k
• 7,910 points
947 views

1 answer to this question.

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

So, your command is python3 -m http.server.
answered Nov 21, 2018 by SDeb
• 13,300 points

Related Questions In Python

0 votes
1 answer

What is the Python 3 equivalent of “python -m SimpleHTTPServer”

The SimpleHTTPServer module has been merged into http.server in Python 3.0. ...READ MORE

answered Nov 28, 2020 in Python by Gitika
• 65,890 points
664 views
0 votes
1 answer

The equivalent of a GOTO in python ​​

Gotos are universally reviled in computer science ...READ MORE

answered Sep 3, 2018 in Python by Priyaj
• 58,100 points
12,669 views
0 votes
1 answer

What is the equivalent of NotImplementedError using Python?

Hi, good question! One simple answer to your ...READ MORE

answered Jan 17, 2019 in Python by Nymeria
• 3,560 points
2,290 views
0 votes
1 answer
0 votes
2 answers
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 7, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 4,397 views
0 votes
1 answer
0 votes
2 answers

Equivalent of a?b:c in Python

result = "F" if(isfemale_bit) else "M" print(result) Try this ...READ MORE

answered Dec 15, 2019 in Python by Manel
4,160 views
0 votes
1 answer

How is Python 2.7.3 and Python 3.3 different?

raw_input() is not used in Python 3. Use input()  ...READ MORE

answered Sep 12, 2018 in Python by SDeb
• 13,300 points
901 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP