Install the python3.5 flask framework and python3.5flask in the window.
Steps:
1. python3.5 is installed on the local machine (the latest version 3.6 is installed, but cx_Oracle does not support it. Only 3.5 is supported and the version is changed)
2. Open the http://flask.pocoo.org/docs/0.12/installation,
(1) first download the get-pip.py file, and double-click to run the installation pip command
(2) Open cmd and run pip install -- upgrade pip setuptools to update the command.
(3) Open the python installation directory and enter/tools/scripts/win_add2path.py
, Execute this file
(4) Open cmd and run pip install virtualenv to install virtualenv.
(5) Open cmd and run the command cd F: \ python \ pythonfile to enter the project directory folder.
(6) Open cmd and execute the command virtualenv venv to create a venv directory.
(7) Open cmd and execute the command venv \ Scripts \ activate to start the corresponding environment.
(8) Open cmd and run pip install Flask to install the flask framework.
Now install OK
3. Test
(1) Create fk. py
from flask import Flaskapp = Flask(__name__)@app.route('/')def hello_world(): return 'Hello, World!'
(2) run the set FLASK_APP = fk. py command.
Run the python-m flask run Command to display Running on http: // 127.0.0.1: 5000/
(3) open a browser and access http: // 127.0.0.1: 5000/. The browser displays Hello, World!
Successful