--- title: "Set up the Python environment" slug: "set-up-the-python-environment" tags: ["EDR with Forensics (EDRF)", "Endpoint Security"] updated: 2026-08-26T19:31:16Z published: 2026-08-26T19:31:16Z canonical: "docs.trellix.com/set-up-the-python-environment" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.trellix.com/llms.txt > Use this file to discover all available pages before exploring further. # Set up the Python environment Follow these steps to set up the python environment and run the scripts: 1. Navigate to the project root directory. 2. Activate the Python virtual environment for your operating system: - For Windows: ``` python -m venv hs_venv hs_venv\Scripts\activate.bat ``` - For macOS and Linux: ``` python -m venv hs_venv source hs_venv/bin/activate ``` 3. Install required packages: ``` pip install -r requirements.txt ```