Search code examples
conda

Can not remove conda enviroment


I am doing some Udemy Data Science course and they use conda for everything and at one point, they wanted to install seaborn inside Jupyter. I couldn't understand that and wanted to really learn about the conda environments, so I want to delete the conda environment. I am following official conda docs. After using the command (env is the name of the environment I want to remove) conda remove --name env --all if I run the command conda info --envs, I get the following output

# conda environments:
#
base                   C:\Users\Asus\miniconda3
env_from_file          C:\Users\Asus\miniconda3\envs\env_from_file
                       D:\Udemy\Complete_AI_&_Machine_Learning_Data_Science_Bootcamp\env

So, its obvious that env was not removed. And I have done conda deactivate before doing these commands. I am on Windows machine. Please help.


Solution

  • Try an explicit path:

    conda env remove --path D:\Udemy\Complete_AI_&_Machine_Learning_Data_Science_Bootcamp\env