Source the activate script in bash or zsh.
Section: Activation issues
Activate using bash syntax
bash
bash
source .venv/bin/activateExplanation
The most common activation command on POSIX systems.
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
Refresh command hashing in zsh
Force zsh to refresh remembered command paths.
Allow local PowerShell scripts
Fix execution policy for venv activation scripts.