민서네집

python.exe: No module named SimpleHTTPServer 본문

Python

python.exe: No module named SimpleHTTPServer

브라이언7 2014. 1. 14. 09:00

< 파이썬의 설치 >


http://python.org/


명령 프롬프트 창에서 


python -m SimpleHTTPServer 8000


라고 명령을 줬는데, 


python.exe: No module named SimpleHTTPServer


이라는 에러가 난다면...


python -m http.server [port] for Python 3


There is no simpler way than ...

With python 2.4 and later you can use the SimpleHTTPServer module like this

python -m SimpleHTTPServer [port]

This will start a HTTP server on port 8000 (if no port is specified) serving the files and directories which are in the current working dir.

Advantages:

  • comes with python (>= 2.4), no need to install anything
  • no configuration needed

[출처] http://stackoverflow.com/questions/530787/simple-http-web-server


[참고] http://www.pythonforbeginners.com/modules-in-python/how-to-use-simplehttpserver/


'Python' 카테고리의 다른 글

Coursera - Python 강의  (0) 2014.09.29
[python] Directory Tree 삭제하기  (0) 2014.05.28
Maven Repository Integrity Test (정합성/무결성 테스트)  (0) 2014.05.27
Notepad++에서 파이썬 실행하기  (0) 2014.05.27
Python 배우기  (0) 2013.12.30
Comments