3

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

YasserKhalil
  • 9,138
  • 7
  • 36
  • 95

1 Answers1

13

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

siaka karl
  • 161
  • 2
  • 10
  • after this command has activated the `(base)` environment, you can activate other conda virtual environments with the usual conda syntax: `conda activate ` – Tms91 Feb 03 '22 at 16:10