Python Project Setup – Virtual Environments and Package Management
Virtual Environments in Python
Virtual Environments are isolated Python environments that have their own
site-packages. Basically, it means that each virtual environment has its own set of dependencies to third-party packages usually installed from PyPI.
Virtual environments are helpful if you develop multiple Python projects on the same machine. Also, when you distribute your Python code to others or on servers, virtual environments come in very handy to reproducibly create the same environment as on your development machine.
Today, we’ll learn
- which tools exist to create isolated environments
- which tools help with package management in Python projects