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 ?
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.