How to Install and Use Flask on Windows for Beginners

Pretty Printed · 204K views · 2019 · 9:03

Open on YouTube

Web developmentPython, Ruby & scripting languagestutorial

Why Stack Overflow recommends it

Stack Overflow users link it when answering or following along with questions about installing Flask on Windows, since its venv and flask run steps are the ones people copy.

Recommended by 3 people across 3 different months, 2019 to 2020.

What it is

A short beginner tutorial from the Pretty Printed channel that shows how to install Flask on Windows inside a virtual environment and build a minimal Hello World app. It covers creating app.py, setting up a venv with py -m venv, installing Flask with pip, and running it with flask run.

What people said

Recommends Dulangi_Kanchana · 2019-09 · Stack Overflow · on “How to install Flask on Windows?”

[this video] Follow as in the url This is how i do : 1) create an app.py in Sublime Text or Pycharm, or whatever the ide, and in that app.py have this code from flask import Flask app = Flask(__name__) @app.route('/') def helloWorld(): return'<h1>Hello!</h1>' This is a very basic program to printout a hello , to test flask is working.I would advise to create app.py in a new folder, then locate where the folder is on command prompt enter image description here [LINK] type in these line of codes on command prompt >py -m venv env >env\Scripts\activate >pip install flask Then >set FLASK_APP=app.py >flask run Then press enter all will work The name of my file is app.py, give the relevant name as per y

Recommends Fareed Khan · 2020-06 · Stack Overflow · on “Attempting to install Flask python”

You should be using these steps if you are new to flask: First open your cmd and type cd desktop it will move your directory to desktop and nothing else. Then use mkdir mywebsite it will create a folder for you on desktop having a name mywebsite Then use cd mywebsite it will move your directory to your folder that you have just created. The real fun starts from here! now type py -m venv env it will create a virtual folder having a name of env inside your mywebsite folder this is the folder where you are going to install flask numpy or any other library based on your need! now type env\Scripts\activate you will see a virtual environment has been created for you because (env) is showing at the

Recommends Pufu p · 2020-07 · Stack Overflow · on “Lot of problems while trying to install flask”

I am installing flask step by step as in this tutorial [this video] At the start I had an error Can't find a default Python yet I managed to fix it. Now after typing in Git Bash ( py -m venv env ) I get an error saying. "Unable to create process using 'D:\python\python.exe -m venv env'" What can I do about it? If you wan't me to give you some more information please tell me how to get them since I am a newbie and it will be my pleasure to provide them. Thank you.

Cites Pedro · 2020-05 · Stack Overflow · on “ModuleNotFoundError: No module named 'flask', What did I do wrong?”

I'm more or less new to computer science and can not even manage to run my first "Hello World" in Flask (Python 3; on my Windows-10 computer). I have tried some different tutorials on how to get started with Flask but did not find them really helpful so I did not finish them. Eventually I found a tutorial that seemed comprehensive and fitting my needs, but Visual Studio Code Terminal could not execute my code but gave me back an Error Message. Maybe I created a global virtual environment before I started this course that I'm following along now, and that's why it gives me that Error, but am not sure. So this is the tutorial that I eventually picked and am currently following along: [this video] .