Can not activate a virtualenv in GIT bash mingw32 for Windows
On Windows10, you could go in the directory of your virtualenv where the Scripts folder is placed then enter the below command
source ./Scripts/activate
Note the .(dot) without this it was giving error to me when I use it like above mentioned then the solution provided by Pierre worked for me.
Doing Scripts/activate
runs the script in a new instance of the shell, which is destroyed after the script execution. To run the script in your current shell, use either . Scripts/activate
or source Scripts/activate
.
Scripts/activate.bat
does not work here because it is written in Batch, Windows cmd.exe
language, and not Bash.