Activate virtual environment in windows using Git-Bash

Viewed 7947

I am trying to activate virtual environment in windows using Git-Bash I used this line and this works fine

virtualenv project1_env

Then when trying this line to activate

.\project1_env\Scripts\activate

I got bash: .project1_envScriptsactivate: command not found I tried several tries to make it works but it didn't

Note that this line works on command prompt with no problem So my problem is with Git-Bash on windows

Thanks advanced for help

1 Answers

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

Related