Python venv Cheat Sheet/Activate on Windows PowerShell

Activate from PowerShell.

Section: Activate and deactivate

Activate on Windows PowerShell

powershell
powershell
.venv\Scripts\Activate.ps1
Explanation

If execution policy blocks the script, temporarily allow local scripts for the session or user before activating.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Activate and deactivate
Activate on Windows CMD
Activate from Command Prompt.
OpenIn sheetbatsame section
Allow local PowerShell activation scripts
Change policy so local activation scripts can run.
OpenIn sheetpowershellsame section
Activate on bash/zsh
Activate a virtual environment on Linux or macOS.
OpenIn sheetbashsame section
Activate with dot shorthand
POSIX shell shorthand for source.
OpenIn sheetbashsame section
Activate in fish shell
Use the fish shell activation script.
OpenIn sheetbashsame section
Activate in csh/tcsh
Use the csh activation script.
OpenIn sheetbashsame section