简体   繁体   中英

How to remove Python Environment from Anaconda 3 in Windows 10

I am trying to remove the Py2 environment from my Ananconda 3 installation but in vain.

I follow advice found in the official documentation

I am asked to deactivate the environment but even after I deactivate it I get again the same message. See below:

在此处输入图片说明

Try this, maybe it will help:

conda remove -n ENVIRONMENT_NAME --all

Here is a link to the docs .

The problem is that you misunderstood the documentation. It says conda remove --name myenv --all . You interpreted this as meaning you should replace name with the name of your environment. But name is the name of the command option and can't be changed; instead you need to replace myenv with the name of your environment, so that the command becomes

conda remove --name py27 --all

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM