All the time that I've worked with python and anaconda, I have never wondered how actually virtual envs are useful except for version controlling. When I looked it up, I found a lot of articles on how to create and use custom envs, but not exactly why they are so awesome. Why is it dangerous to install new libraries into the original installation? Are virtual envs useful for anything other than versioning?
Asked
Active
Viewed 98 times
1 Answers
3
PROS:
- You can use any version of python you want for a specific environment without having to worry about collisions.
- Your main python package directory does not get flooded with unnecessary python packages.
- You can organize your packages much better and know exactly the packages you need to run.
- Anyone can run your code on their machine.
- Your project is easier to deploy.
- Your application runs faster.
- Ease of maintenance.
CONS:
- storage space?

Nine Tails
- 378
- 3
- 15
-
"and know exactly the packages you need to run" - this is the biggest practical reason. – John S Sep 30 '20 at 06:42
-
Thanks! Now it makes sense, especially points 3 and 4. – khadija sidhpuri Sep 30 '20 at 07:33