Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to remove conda envs

I have created two environments(env1 and env2) in the following path:

Users/user/conda/envs

I want to remove env1 and have tried every combination of the following commands but it is not removing:

conda remove --name env1
conda remove --name conda/envs/env1

Thanks in advance for your help!

like image 662
A.E Avatar asked Aug 07 '18 06:08

A.E


People also ask

Where does conda store Envs?

The environments created by Conda is always located in /Users/.../anaconda3/envs/ . You may change the default location by using the following command but it is not encouraged.

Can I delete base environment conda?

How do you delete a base environment in terminal? To exit the virtual environment, use the command conda deactivate . If you run conda info –envs again, there is no * in front of env_name .

How do you delete a virtual environment?

There is no command for deleting your virtual environment. Simply deactivate it and rid your application of its artifacts by recursively removing it. Note that this is the same regardless of what kind of virtual environment you are using.


1 Answers

You can use the following command lines in terminal (permissions may be required):

conda env remove --name myenv

alternatively:

conda remove --name myenv --all

You can do conda info --envs to verify the action was successful.

More info here.

like image 73
Reblochon Masque Avatar answered Sep 27 '22 22:09

Reblochon Masque