How to start python simpleHTTPServer on Windows 10

后端 未结 3 987
野性不改
野性不改 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条回答
  •  旧时难觅i
    2021-02-10 23:57

    Ok, so different commands is apparently needed.

    This works:

    C:\pathToIndexfile\py -m http.server

    As pointed out in a comment, the change to "http.server" is not because of windows, but because I changed from python 2 to python 3.

提交回复
热议问题