I saw that VirtualEnv
provides a way to create different environments for application development in Python
. And, whenever we use it, you need to install the dependencies of a specific project.
For example, I realize that when it comes to projects like Django
and the like, there is a strong recommendation to use this virtual environment.
But since I'm used to programming in PHP
and I've never had a problem using the same PHP version for my projects, I started to wonder if it really is necessary or if the whole situation would be needed.
Because it seems that a Python
version is installed, along with Pip
and Easy install
, for every Virtual Env
created. In PHP, for example, we can only use the required dependencies in a project, using Composer
, and use the PHP
that is already installed to develop, in this case just stick to the details of the version used. >
So, I would like anyone who has experience greater than mine to explain with Python
to me:
-
What are the strengths of using VirtualEnv?
-
Is there a case where I should not worry about using VirtualEnv?
- Is it essential that in all project types I use
VirtualEnv
, or just conflicting cases? -
Would not it be better to install everything globally instead of using
VirtualEnv
? Whether you want it or not, it's an extra step in development.