![]() |
VOOZH | about |
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.
Before installing Flask, ensure that Python is properly installed on your system. Run the following command in the Command Prompt:
python --version
Open the Command Prompt and run the following command to install Flask with its required dependencies:
pip install flask
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.
Run the following command in the Terminal to verify if Python is install in your system or not:
python3 --version
Run the following command in the terminal to install Flask with its required dependencies:
pip3 install flask
Open the Python shell and try importing Flask to verify if Flask is installed correctly:
python3
>>> import flask