Can not activate a virtualenv in GIT bash mingw32 for Windows

后端 未结 5 1346
慢半拍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:13

    How to activate then deactivate a venv with Git Bash


    To access your python in Windows 10, you need to add the .exe when creating the virtual environment.

    $ python.exe -m venv Scripts
    

    Then you can move into the Scripts folder you created for the virtual environment.

    $ cd Scripts/
    

    Now you have to call on it to activate the virtual environment.

    $ source ./Scripts/activate
    

    When you are done you just deactivate the virtual environment.

    $ deactivate
    

    Screenshot how to activate/deactivate Git Bash venv


提交回复
热议问题