What is virtualenv for?

Why do I need virtualenv ? What kind of isolation are we talking about ? Why is it necessary to use virtualenv when making projects on Flask or Django ?

Here write that it is needed if you need to install a specific version of the library without updating (or deprecating) the existing library. Just for this ?

Author: Tanya, 2018-03-17

1 answers

The virtual environment is necessary in order to solve the problem of library incompatibility within the project. Let's say you're working on a project that uses a particular library. Then you have a new project in which you decided to use the same library, but a new version, which for some reason is not compatible with the old one. And here you can create a virtual environment for a new project, install the necessary version of the library in it, and have the ability to work on two projects at once.

 2
Author: 0xdb, 2018-03-18 22:50:59