diff --git a/docs/tech_docs/python/Python-Virtual-Environments.md b/docs/tech_docs/python/Python-Virtual-Environments.md index 6f11a06..1c117dd 100644 --- a/docs/tech_docs/python/Python-Virtual-Environments.md +++ b/docs/tech_docs/python/Python-Virtual-Environments.md @@ -44,7 +44,17 @@ This guide provides step-by-step instructions on setting up a Python virtual env ```bash cat requirements.txt ``` +### Managing Dependencies +- **Install packages** using `pip` while the environment is activated. +- **Create a `requirements.txt`** file to keep track of your dependencies. + ```bash + pip freeze > requirements.txt + ``` +- **Install dependencies** from the file in a new environment: + ```bash + pip install -r requirements.txt + ``` ## Deactivating the Virtual Environment 1. **Deactivate the Environment**