Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

condaEnviromentError: cannot remove current enviroment . deactivate and run conda remove again

I tried to uninstall conda enviroment base by typing below,

conda env remove -n base

As suggested i tried to deactivate base by using

conda deactivate base

Again I tried to remove that enviroment but again throws same error

CondaEnviromentError: cannot remove current enviroment. deactivate and run conda remove again


2 Answers

It doesn't appear there is a way to remove the base environment. However, you can roll back revisions within in conda. You can list the revisions of your base environment by using conda list --revisions. From there you can roll back to previous revision of the environment by using conda install --revision <REVNUM>.

If you want to reset the environment to as close as you can get from the initial install run conda install --revision 0.

like image 84
Pridkett Avatar answered Nov 18 '25 05:11

Pridkett


Try conda deactivate conda remove -n env_name --all

like image 30
Angshuman Sengupta Avatar answered Nov 18 '25 04:11

Angshuman Sengupta