Update docs/tech_docs/python/Python-Virtual-Environments.md

This commit is contained in:
2024-04-17 04:41:57 +00:00
parent f10d7dac90
commit dc012777b2

View File

@@ -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**