Issue with virtualenv - cannot activate

前端 未结 25 2052
借酒劲吻你
借酒劲吻你 2020-12-04 05:20

I created a virtualenv around my project, but when I try to activate it I cannot. It might just be syntax or folder location, but I am stumped right now.

You can see

25条回答
  •  难免孤独
    2020-12-04 05:55

    I have a hell of a time using virtualenv on windows with git bash, I usually end up specifying the python binary explicitly.

    If my environment is in say .env I'll call python via ./.env/Scripts/python.exe …, or in a shebang line #!./.env/Scripts/python.exe;

    Both assuming your working directory contains your virtualenv (.env).

提交回复
热议问题