Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to reset anaconda root environment

How do I reset the root environment of anaconda? There has to be a simple conda reset command that does this.

I don't want to reinstall anaconda all over again. I have other virtualenvs that I don't want to overwrite and that will happen if I install anaconda again.

like image 807
Glassjawed Avatar asked Jan 28 '17 19:01

Glassjawed


People also ask

How can I reset my environment in conda?

This has been implemented as conda list --revisions and conda install --rev REV_NUM . EDIT: be careful though if you execute conda install --rev 0 as this will remove your root environment and the conda command.

How do I change my root anaconda?

Go to the start menu, right-click 'Anaconda Prompt' and go to file location. Open its properties & change the target to the location of your preferred environment.

How do you Unactivate a conda?

To activate your Conda environment, type source activate <yourenvironmentname> . Note that conda activate will not work on Discovery with this version. To install a specific package, type conda install -n <yourenvironmentname> [package] . To deactivate the current, active Conda environment, type conda deactivate .


1 Answers

See https://github.com/conda/conda/issues/1032

This has been implemented as conda list --revisions and conda install --rev REV_NUM.

EDIT: be careful though if you execute conda install --rev 0 as this will remove your root environment and the conda command. Maybe conda install --rev 1 would produce the desired behavior (restore root environment to its state after first installation).

EDIT 2018-03-07: Use the --revision argument instead of --rev

like image 115
pierre Avatar answered Sep 18 '22 19:09

pierre