How to reset anaconda root environment

PythonAnaconda

Python Problem Overview


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.

Python Solutions


Solution 1 - Python

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

Solution 2 - Python

One might also consider conda update anaconda. The anaconda meta-package links together certain versions of packages that Continuum Analytics has figured out all play nice together.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionGlassjawedView Question on Stackoverflow
Solution 1 - PythonpierreView Answer on Stackoverflow
Solution 2 - PythonRandyPView Answer on Stackoverflow