![]() |
Flask is basically a Python module. It can work with Python only and it is a web-developing framework. It is a collection of libraries and modules. Frameworks are used for developing web platforms. Flask is such a type of web application framework. It is completely written in Python language. Unlike Django, it is only written in Python. As a new user, Flask is to be used. As it is easier to handle. As it is only written in Python, before installing Flask on the machine, Python should be installed previously. Features of Python Flask:
Install Virtual EnvironmentWe use a module named virtualenv which is a tool to create isolated Python environments. virtualenv creates a folder that contains all the necessary executables to use the packages that a Python project would need. pip install virtualenv
Create Python virtual environment Go to the local directory where you want to create your Flask app. virtualenv venv
Activate a virtual environment based on your OS For windows > venv\Scripts\activate ![]()
Install Flask on Windows or Linux
![]()
|
Reffered: https://www.geeksforgeeks.org
How To |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 12 |