Local server with python

Overview

  1. windows edition
  2. Mac edition

Windows

Download python

Download from here. Since it is 64bit, download the following file. 「Windows x86-64 executable installer」

python installation

Click the downloaded python-3.8.2-amd64.exe. image.png

image.png

image.png

image.png

Check python

>py -3 -V
Python 3.8.2

Local server placement

>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.

(By the way) Uninstall python

You can also uninstall from the installer.

Click python-3.8.2-amd64.exe.

Uninstallation is complete. image.png

image.png

Mac

python installation

The following article describes the installation method. Install python with mac vs code

Local server placement

$ 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.

reference

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

Local server with python
Easy HTTP server with Python
Create an animated GIF local server with Python + Flask
FizzBuzz with Python3
Scraping with Python
Statistics with python
Scraping with Python
Python with Go
Twilio with Python
Integrate with Python
Play with 2016-Python
AES256 with python
Tested with Python
python starts with ()
with syntax (Python)
Zundokokiyoshi with python
Excel with Python
Microcomputer with Python
Cast with python
Competitive programming with python Local environment settings
Serial communication with Python
Tftp server with Docker
Zip, unzip with python
Django 1.11 started with Python3.6
Primality test with Python
Python with eclipse + PyDev.
Socket communication with Python
Data analysis with python 2
Build a local server with a single command [Mac]
Scraping with Python (preparation)
python> udp> echo server
Learning Python with ChemTHEATER 03
Sequential search with Python
Run Python with VBA
Handling yaml with python
Solve AtCoder 167 with python
Serial communication with python
[Python] Use JSON with Python
Learning Python with ChemTHEATER 05-1
Set up a local server with Go-File upload-
Learn Python with ChemTHEATER
Run prepDE.py with python3
ODBC connection to FileMaker 11 Server Advanced with Python 3
1.1 Getting Started with Python
Collecting tweets with Python
Binarization with OpenCV / Python
3. 3. AI programming with Python
Kernel Method with Python
Non-blocking with Python + uWSGI
Scraping with Python + PhantomJS
Posting tweets with python
Use mecab with Python3
[Python] Redirect with CGIHTTPServer
Start a simple Python web server with Docker
Operate Kinesis with Python
Getting Started with Python
Use DynamoDB with Python
Zundko getter with python
Handle Excel with python
Ohm's Law with Python
Primality test with python