$ErrorActionPreference = "Stop" $env:Path = [System.Environment]::GetEnvironmentVariable("Path", "Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path", "User") if (-not (Test-Path ".\.venv\Scripts\python.exe")) { python -m venv .venv } .\.venv\Scripts\python.exe -m pip install -r requirements.txt .\.venv\Scripts\python.exe .\local_llm_chat.py