Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

virtualenv doesn't work on git bash MINGW32

I'm a git newbie. I'm working on Windows and I use Git Bash MINGW32. I was working in my directory on master Branch in "env" environmental (created by myself with virtualenv). For an error I close my shell and now I cannot reactivate env environemntal. I try with

env\Scripts\activate

but i cannot see env in the prompt. I try to create another virtual environmental using

VIRTUALENV env1

and then

env1\Scripts\activate

But i don't see env1 in the prompt.

If I create a test virtual environmental using msdos prompt it works.

Any tips?

like image 587
franco_b Avatar asked Jan 13 '23 03:01

franco_b


1 Answers

Could you rather try sourcing the environment (after VIRTUALENV env1, provided your virtualenv is 1.7.1+):

. env/Scripts/activate
or
source env/Scripts/activate

In a bash session, you would use / or (Windows bash) \\

like image 182
VonC Avatar answered Jan 19 '23 12:01

VonC