Can not activate a virtualenv in GIT bash mingw32 for Windows

后端 未结 5 1345
慢半拍i
慢半拍i 2020-11-29 21:41

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

5条回答
  •  攒了一身酷
    2020-11-29 22:08

    Doing Scripts/activate runs the script in a new instance of the shell, which is destroyed after the script execution. To run the script in your current shell, use either . Scripts/activate or source Scripts/activate.

    Scripts/activate.bat does not work here because it is written in Batch, Windows cmd.exe language, and not Bash.

提交回复
热议问题