What is a Virtual Environment? A Python Virtual Environment, or more commonly called "virtualenv", is a tool that is included in the recent Python distributions. Its purpose is to create a virtual and isolated Python environment, that can be modified at will and then simply discarded. "Python environment" refers to the Python binaries, the standard Python libraries, as well as any third party library that is later installed. When installing a Python distribution from https://www.python.org/ or from a package manager, this installation is referred as the "global environment" or "global installation". Why is a Virtual Environment needed? Except for the simplest cases, most Python projects require some dependencies to third party libraries - third party in the sense that they are not included in the Python official distribution. Typically, these libraries are installed in the "site-packages" folder of the global Python installatio...
Software engineering blog