How to Activate Venv in Windows?

Open Command Prompt or PowerShell

Navigate to your project folder

Create a virtual environment if needed: `python -m venv venv`

Activate in Command Prompt: `venvScriptsactivate`

Activate in PowerShell: `venvScriptsActivate.ps1`

Activate in Git Bash: `source venv/Scripts/activate`

Confirm activation by checking for `(venv)` in the prompt

Deactivate with: `deactivate`

Suggested for You

Trending Today