Venv
virtual environment for the python project
- Standard Library: venv is part of the Python standard library, so it doesn’t require additional installation.
- Lightweight: It provides a minimal and straightforward way to create isolated environments.
- No Dependency Management: venv focuses solely on environment isolation. You still need to use pip to manage dependencies manually.
Create a Virtual Enviroment
python -m venv venv
Activate the Virtual Environment
source myenv/bin/activate
Deactivate the Virtual Enviroment
deactivate