Python venv Troubleshooting Cheat Sheet/Allow local PowerShell scripts

Fix execution policy for venv activation scripts.

Section: Activation issues

Allow local PowerShell scripts

powershell
powershell
Set-ExecutionPolicy -Scope CurrentUser RemoteSigned
Explanation

A common resolution when PowerShell blocks `Activate.ps1`.

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 Activation issues
Run Activate.ps1
Activate from PowerShell.
OpenIn sheetpowershellsame section
Activate using bash syntax
Source the activate script in bash or zsh.
OpenIn sheetbashsame section
Activate using fish syntax
Source the fish activation script.
OpenIn sheetbashsame section
Refresh command hashing in zsh
Force zsh to refresh remembered command paths.
OpenIn sheetbashsame section
Delete and recreate on PowerShell
Rebuild from scratch on Windows.
OpenIn sheetpowershell1 tag match
Find python on POSIX
See which python binary your shell resolves first.