39 Virtual Environments
The pip package manager makes it easy to install third-party Python modules along with their dependencies. The installation is then usually done for the Python interpreter installed in the system, and the installed package is available to any Python program from then on.
Let’s suppose we were to develop two Python programs A and B on the same system, each with very different requirements. In such (quite common) scenarios, there are multiple conceivable reasons that a simple, system-wide installation of all dependencies of A and B could be an issue:
-
The dependencies of A and B could be mutually exclusive—for example, via different version requirements—making simultaneous installation impossible.
-
Installing a dependency ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access