Installing Flask
Once your virtual environment is activated, install Flask:
pip install Flaskpip install FlaskVerify installation
You can quickly verify installation in Python:
python -c "import flask; print(flask.__version__)"python -c "import flask; print(flask.__version__)"What gets installed?
Flask depends on a few important libraries:
- Werkzeug: request/response handling, dev server
- Jinja2: templating engine
- ItsDangerous: signing cookies
- Click: CLI tooling
You don’t need to learn them all now, but it’s helpful to know what’s underneath.
Pinning versions
For learning projects, installing latest is fine.
For production apps, it’s common to pin versions in requirements.txtrequirements.txt or use a tool like Poetry. (We’ll keep it simple in this tutorial track.)
If this helped you, consider buying me a coffee ☕
Buy me a coffeeWas this page helpful?
Let us know how we did
