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

This commit is contained in:
2024-04-17 04:47:09 +00:00
parent 7509337620
commit babf16f422

View File

@@ -64,19 +64,29 @@ This guide provides step-by-step instructions on setting up a Python virtual env
``` ```
# Deactivate the current environment # Deactivate the current environment
deactivate ```bash
deactivate
```
# Remove the environment directory (be careful with this command) # Remove the environment directory (be careful with this command)
```bash
rm -rf env rm -rf env
```
# Recreate the virtual environment # Recreate the virtual environment
```bash
python3 -m venv env python3 -m venv env
```
# Activate the environment # Activate the environment
```bash
source env/bin/activate source env/bin/activate
```
# Install python-docx package # Install python-docx package
```bash
pip install python-docx pip install python-docx
```
## Tips ## Tips