DEV Community

Discussion on: Install Flask and create your first web application

Collapse
 
dmahely profile image
Doaa Mahely

Hi Sahil, thanks for sharing!
Why is it necessary to create a virtual environment to run Flask?

Collapse
 
sahilrajput profile image
Sahil Rajput

It is a good approach to create virtual environment whenever you start a new project. So that no two libraries cause conflict with each other.

For example:
If one project uses Django==1.0.1 and other uses Django==3.0.0. so you have to create the virtual environment for both the project so that you can run them smoothly else one of them will cause problem