Flask Basics & Installation (original) (raw)

Last Updated : 24 Mar, 2026

Flask is a lightweight Python web framework used to build web applications and APIs. It provides the essential tools required for web development while keeping the structure simple and flexible. Flask is widely used by beginners and developers for building scalable web apps.

Features of Flask:

Installation in Windows

Step 1: Check Python Installation

Before installing Flask, ensure that Python is properly installed on your system. Run the following command in the Command Prompt:

python --version

Screenshot-2026-03-20-125742

Checking Python Version

Step 2: Install Flask

Open the Command Prompt and run the following command to install Flask with its required dependencies:

pip install flask

tt

Installing Flask

Step 3: Verify Installation

After installation, to confirm that Flask has been installed correctly. Open the Python shell and try importing Flask:

import flask

If no error appears, Flask is installed successfully.

Installation in Linux

Step 1: Check Python Installation

Run the following command in the Terminal to verify if Python is install in your system or not:

python3 --version

Step 2: Install Flask

Run the following command in the terminal to install Flask with its required dependencies:

pip3 install flask

flask-installation

Terminal Screenshot

Step 3: Verify Installation

Open the Python shell and try importing Flask to verify if Flask is installed correctly:

python3
>>> import flask

check-flask-installation