Issue with virtualenv - cannot activate

前端 未结 25 2006
借酒劲吻你
借酒劲吻你 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:46

    1. For activation you can go to the venv your virtualenv directory by cd venv.

    2. Then on Windows, type dir (on unix, type ls). You will get 5 folders include, Lib, Scripts, tcl and 60

    3. Now type .\Scripts\activate to activate your virtualenv venv.

    Your prompt will change to indicate that you are now operating within the virtual environment. It will look something like this (venv)user@host:~/venv$.

    And your venv is activated now.

提交回复
热议问题