Python 如何重置anaconda root环境
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/41914139/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to reset anaconda root environment
提问by Glassjawed
How do I reset the root environment of anaconda? There has to be a simple conda reset command that does this.
如何重置anaconda的root环境?必须有一个简单的 conda reset 命令来执行此操作。
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.
我不想重新安装 anaconda。我还有其他不想覆盖的虚拟环境,如果我再次安装 anaconda,就会发生这种情况。
回答by pierre
See https://github.com/conda/conda/issues/1032
见https://github.com/conda/conda/issues/1032
This has been implemented as conda list --revisions and conda install --rev REV_NUM.
这已作为 conda list --revisions 和 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).
编辑:尽管执行时要小心,conda install --rev 0
因为这将删除您的根环境和conda
命令。也许conda install --rev 1
会产生所需的行为(在首次安装后将根环境恢复到其状态)。
EDIT 2018-03-07: Use the --revision
argument instead of --rev
编辑 2018-03-07:使用--revision
参数代替--rev
回答by RandyP
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.
也可以考虑一下conda update anaconda
。在anaconda
元包连接在一起包的某些版本的连续分析已经想通了,所有玩好起来。
回答by Luis Alberto Castillo Sanchez
In my case, this works:
就我而言,这有效:
conda update pyqt