Windows
Download from here. Since it is 64bit, download the following file. 「Windows x86-64 executable installer」
Click the downloaded python-3.8.2-amd64.exe.
>py -3 -V
Python 3.8.2
>py -3 -m http.server
Serving HTTP on :: port 8000 (http://[::]:8000/) ...
When I hit "http://127.0.0.1:8000", the directory was displayed.
You can also uninstall from the installer.
Click python-3.8.2-amd64.exe.
Uninstallation is complete.
Mac
The following article describes the installation method. Install python with mac vs code
$ python3 -m http.server
Serving HTTP on 0.0.0.0 port 8000 (http://0.0.0.0:8000/) ...
When I hit "http://127.0.0.1:8000", the directory was displayed.
How to access local files from a browser Download and install Python 3.7.3. How to communicate with Python and Javascript using Ajax )
Recommended Posts