From dc012777b29c24604bb86ab2697aee036b8e33df Mon Sep 17 00:00:00 2001 From: medusa Date: Wed, 17 Apr 2024 04:41:57 +0000 Subject: [PATCH] Update docs/tech_docs/python/Python-Virtual-Environments.md --- docs/tech_docs/python/Python-Virtual-Environments.md | 10 ++++++++++ 1 file changed, 10 insertions(+) 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**