Update docs/tech_docs/python/Python-Virtual-Environments.md
This commit is contained in:
@@ -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**
|
||||
|
||||
Reference in New Issue
Block a user