diff --git a/docs/tech_docs/Python-Virtual-Environments.md b/docs/tech_docs/Python-Virtual-Environments.md index 2d2afed..e8b8d24 100644 --- a/docs/tech_docs/Python-Virtual-Environments.md +++ b/docs/tech_docs/Python-Virtual-Environments.md @@ -1,3 +1,54 @@ +# Setting Up a Virtual Environment for KnowledgeBase-Tech Hugo Site + +## Install Virtual Environment + +First, ensure Python and pip are installed, then install `virtualenv`: + +```bash +pip3 install virtualenv +``` + +## Create the Virtual Environment + +Create a virtual environment named `KnowledgeBase-Tech_env`: + +```bash +virtualenv KnowledgeBase-Tech_env +``` + +## Activate the Virtual Environment + +To start using the virtual environment: + +```bash +source KnowledgeBase-Tech_env/bin/activate +``` + +## Install Dependencies + +While the environment is active, install any required packages: + +```bash +pip install +``` + +## Deactivate the Virtual Environment + +When you're done working, deactivate the environment: + +```bash +deactivate +``` + +## Working with the Environment + +Remember to activate the `KnowledgeBase-Tech_env` environment every time you work on the KnowledgeBase-Tech Hugo site. This ensures all dependencies are isolated to this specific project. +``` + +Replace `` with any specific Python package you need for your Hugo site. This guide will help you maintain a clean and isolated environment for your Hugo site development. + +--- + **Install Python and pip (if not already installed):** Ubuntu 22.04 typically comes with Python 3 installed. You can check if Python is installed and its version by running: ```bash