How to reset anaconda root environment

如何重置水蟒的根环境?必须有一个简单的康达重置命令,这样做。

我不想再重装水蟒了。我有其他的虚拟世界,我不想覆盖,这将发生,如果我安装水蟒再次。

154426 次浏览

参见 https://github.com/conda/conda/issues/1032

这已被实现为 conda list --revisionsconda install --rev REV_NUM

编辑: 如果执行 conda install --rev 0,要小心,因为这会删除根环境和 conda命令。也许 conda install --rev 1会产生所需的行为(在第一次安装之后将根环境恢复到它的状态)。

编辑2018-03-07: 使用 --revision参数而不是 --rev

也可以考虑 conda update anacondaanaconda元软件包将 ContinuumAnalytics 发现的某些版本的软件包连接在一起,这些版本的软件包在一起很好用。

While this is not exactly what you are asking, I found conda clean --all useful to clean out a bunch of old packages, logs etc. which somewhat restores conda to a new state.