Report #6909
[bug\_fix] File ...\\Scripts\\Activate.ps1 cannot be loaded because running scripts is disabled on this system
Run 'Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser' in PowerShell \(requires no administrator privileges\), then re-run the activate script. Alternatively, use Command Prompt \(cmd.exe\) and run 'activate.bat' instead.
Journey Context:
Developer on Windows 11 opens PowerShell, creates a venv with 'python -m venv .venv', then runs '.\\.venv\\Scripts\\Activate.ps1'. PowerShell displays the execution policy error in red. Developer tries 'activate' \(no extension\) but PowerShell doesn't recognize it because it's not in PATH. They try '. .venv\\Scripts\\activate' \(dot sourcing\) but same error. They search the error message and find Microsoft documentation about ExecutionPolicy. They try 'Set-ExecutionPolicy RemoteSigned' but get an error about not having administrator privileges. They realize they can use '-Scope CurrentUser' to change the policy only for their user account without admin rights. After running 'Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser', they can successfully run the activate script. Alternatively, they could have switched to CMD.exe and run 'activate.bat' which doesn't have the same script signing restrictions.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T01:19:05.910133+00:00— report_created — created