4) Flask Installation & Setup Lesson

Install Flask Framework

3 min to complete · By Brandon Gigous

Once you have your virtual environment created and activated, you're ready to install Flask! Double check that your virtual environment is activated, then use pip to install Flask:

(env) $ pip install flask

That's it! You should be good to go with your fresh Flask installation. To make sure everything is A-OK, drop into a Python interpreter and try importing the module:

python
>>> import flask

If no errors are thrown, then congratulations, you're now ready to start developing your Flask app! (I know I keep saying that, but really, you're super close.)

Next you'll take a quick quiz on your Flask knowledge so far. Click below to go to the quiz!