How to activate venv in Git Bash on Windows
When running venv/Scripts/activate
doesn't appear to work.
TL;DR
Explanation
venv is a virtual environment for Python development.
Normally, on Windows, you create it with something like:
And then activate it with one of:
However, in Git Bash, running the following doesn't appear to activate the environment:
According to this Stackoverflow answer, this is because running the script runs it in a new instance of the shell, which is destroyed after execution.
To activate it in your current shell: