- check flask version
python -c "import flask; print flask.__version__"
- install flask
pip install Flask
- modify the last line of main.py and main2.py, update ip address in
app.run(host='10.1.0.233', debug=True)
to local machine ip address. - run main.py. use
python main.py
. - run main2.py. use
python main2.py
. - visit the page http://your_ip_address:5000, run this demo.