When I try to activate my virtualenv from GIT bash mingw32 I do not get the expected response.
NOTE: py
is the folder for Python projects in my Google Drive folder. hy
is the virtualenv folder that was made when I ran virtualenv --distribute hy
.
s3z@s3z ~/Google Drive/py/hy
$ Scripts/activate
So you see, there is no expected (hy) that appears before s3z@s3z ~/Google Drive/py/hy
s3z@s3z ~/Google Drive/py/hy
$ Scripts/activate.bat
Scripts/activate.bat: line 1: @echo: command not found
Scripts/activate.bat: line 4: syntax error near unexpected token `('
Scripts/activate.bat: line 4: `if not defined PROMPT ('
And when targeting the actual file name activate.bat
I get error messages. Then I try deactivating to see what happens cause I thought maybe virtualenv was activated but hidden.
s3z@s3z ~/Google Drive/py/hy
$ Scripts/deactivate.bat
Scripts/deactivate.bat: line 1: @echo: command not found
Scripts/deactivate.bat: line 3: syntax error near unexpected token `('
Scripts/deactivate.bat: line 3: `if defined _OLD_VIRTUAL_PROMPT ('
s3z@s3z ~/Google Drive/py/hy
$ Scripts/deactivate
sh.exe": Scripts/deactivate: No such file or directory
Any ideas?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…