Issue with virtualenv - cannot activate

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

    Ensure venv is there and just follow the commands below. It works in Windows 10.

    Go to the path where you want your virtual enviroments to reside:

    > cd 
    

    Create the virtual environment named "env":

    > python -m venv env 
    

    Add the path to the git ignore file (optional):

    > echo env/ >> .gitignore
    

    Activate the virtual env:

    > .\env\Scripts\activate
    

提交回复
热议问题