还原conda环境会导致CondaUpgradeError

时间:2019-01-31 21:22:09

标签: anaconda conda

CondaUpgradeError: This environment has previously been operated on by a conda version that's newer
than the conda currently being used. A newer version of conda is required.
  target environment location: C:\Users\XXXXXXXXXX\AppData\Local\Continuum\anaconda3
  current conda version: 4.5.11
  minimum conda version: 4.6

好吧,让我们尝试一些愚蠢的事情...

C:\Users\XXXXXXXX>pip install conda==4.6
Collecting conda==4.6
  Could not find a version that satisfies the requirement conda==4.6 (from versions: 3.0.6, 3.5.0, 3.7.0, 3.17.0, 4.0.0, 4.0.1, 4.0.2, 4.0.3, 4.0.4, 4.0.5, 4.0.7, 4.0.8, 4.0.9, 4.1.2, 4.1.6, 4.2.6, 4.2.7, 4.3.13, 4.3.16)
No matching distribution found for conda==4.6

我如何摆脱这个陷阱?我尝试使用各种conda install和conda update命令对其进行升级,但是没有任何效果。显然是从4.6升级到4.6.2

1 个答案:

答案 0 :(得分:3)

它是一个错误。建议发布在here的conda发行板上

基本上,从缓存中重新安装或降级,然后升级conda