How to install and run FLASK app in Windows 10





Step 1 : Install python 

Step 2 : Check python and pip version 

Step 3 :Setup flask enviroment

Create a folder

Run Below command

>py -m venv env (This command we have created the virtual environment of Flask)


>env\Scripts\activate (Run the following command to activate the environment)


>pip install flask (Now, install Flask)




Creating the configuration file


app.py

set FLASK_APP=app.py


from flask import Flask


app = Flask(__name__)


@app.route("/")

def hello_world():

    return "<p>Welcome to rocking support</p>"


> flusk run (for run flask app)

Comments