source .venv/bin/activate

Category: Python & pip

source .venv/bin/activate

Activate a virtual environment (bash/zsh)

Activates the .venv virtual environment in bash or zsh. After this, python and pip use the venv.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.