No module named SimpleHTTPServer
2021-11-16 06:27:37 Author: acassis.wordpress.com(查看原文) 阅读量:133 收藏

I used to run this command to get a simple HTTP Server using Python:

$ python -m SimpleHTTPServer
/usr/bin/python: No module named SimpleHTTPServer

But as you can see it is not working anymore on Python3

Keep calm, there is another way:

$ python -m http.server
Serving HTTP on 0.0.0.0 port 8000 (http://0.0.0.0:8000/) …
192.168.0.15 - - [15/Nov/2021 18:02:22] "GET /test.db HTTP/1.0" 200 -

In fact the new way is better (easy to type)


文章来源: https://acassis.wordpress.com/2021/11/15/no-module-named-simplehttpserver/
如有侵权请联系:admin#unsafe.sh