Videos
Β» pip install Flask
Factsheet
/ 19 February 2026; 50 days ago (19 February 2026)
/ 19 February 2026; 50 days ago (19 February 2026)
Install pip as described here: How do I install pip on Windows?
Then do
pip install flask
That installation tutorial is a bit misleading, it refers to actually running it in a production environment.
First install flask using pip,
pip install Flask
* If pip is not installed then install pip
Then copy below program (hello.py)
from flask import Flask
app = Flask(__name__)
@app.route("/")
def hello():
return "Hello World!"
if __name__ == "__main__":
app.run()
Now, run the program
python hello.py
Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
Just copy paste the above address line in your browser.
Reference: http://flask.pocoo.org/
I tried downloading Flask using the Comand Prompt and Python 3.11 but I couldn't figure it out so I downloaded Anaconda as my lecturer said you can use Flask through this which I have downloaded but I don't understand how to use. I use VSC to do my coding, is there a way I can add Flask to VSC?
I'm a tech newbie so I'm not great at figuring out how to install and use Flask and other modules...