How do I remove/delete a virtualenv?

前端 未结 16 1002
感动是毒
感动是毒 2020-11-29 14:25

I created an environment with the following command: virtualenv venv --distribute

I cannot remove it with the following command: rmvirtualenv venv

16条回答
  •  情歌与酒
    2020-11-29 15:09

    If you are a Windows user and you are using conda to manage the environment in Anaconda prompt, you can do the following:

    Make sure you deactivate the virtual environment or restart Anaconda Prompt. Use the following command to remove virtual environment:

    $ conda env remove --name $MyEnvironmentName
    

    Alternatively, you can go to the

    C:\Users\USERNAME\AppData\Local\Continuum\anaconda3\envs\MYENVIRONMENTNAME
    

    (that's the default file path) and delete the folder manually.

提交回复
热议问题