venv for Python Virtual Environments
November 3, 2024•189 words
The venv library is part of the Python standard library suites for creating reproducible environments in terms of package dependencies.
Suppose you have a folder for a Python project. The following command creates a new virtual environment.
python -m venv /path/to/new/virtual/environment
Then, use the following command to activate (or "enter") this virtual environment.
source /path/to/new/virtual/environment/bin/activate
Now we are working in an isolated Python environment: everything Python-...
Read post