user8270077
user8270077

Reputation: 5071

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:

enter image description here

Upvotes: 1

Views: 3552

Answers (2)

Druta Ruslan
Druta Ruslan

Reputation: 7412

Try this, maybe it will help:

conda remove -n ENVIRONMENT_NAME --all

Here is a link to the docs.

Upvotes: 3

BrenBarn
BrenBarn

Reputation: 251408

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

Upvotes: 2

Related Questions