相关疑难解决方法(0)

无法在GIT bash mingw32 for Windows中激活virtualenv

当我尝试从GIT bash mingw32激活我的virtualenv时,我没有得到预期的响应.

注意:py是我的Google云端硬盘文件夹中的Python项目文件夹.hy是我跑的时候制作的virtualenv文件夹virtualenv --distribute hy.

s3z@s3z ~/Google Drive/py/hy
$ Scripts/activate
Run Code Online (Sandbox Code Playgroud)

所以你看,之前没有预期的(hy) 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 ('
Run Code Online (Sandbox Code Playgroud)

当定位实际文件名时,activate.bat我收到错误消息.然后我尝试停用以查看发生了什么,因为我认为也许virtualenv被激活但隐藏了.

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 …
Run Code Online (Sandbox Code Playgroud)

python git bash virtualenv git-bash

44
推荐指数
3
解决办法
2万
查看次数

标签 统计

bash ×1

git ×1

git-bash ×1

python ×1

virtualenv ×1