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!
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.
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 .
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With