How to start python simpleHTTPServer on Windows 10

后端 未结 3 980
野性不改
野性不改 2021-02-10 23:29

I recently bought a Windows 10 machine and now I want to run a server locally for testing a webpage I am developing.

On Windows 7 it was always very simple to start a HT

3条回答
  •  旧巷少年郎
    2021-02-11 00:11

    On Windows, neither python nor python3 worked for me; the program just hangs there, doing nothing.

    However, I got it to work via ipython:

    ipython -m http.server 8000
    

    You need to install IPython beforehand, though:

    pip install ipython
    

提交回复
热议问题