You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

执行conda版本回滚时遇RemoveError错误该如何解决?

解决conda回滚时的RemoveError问题

执行conda install --revision 1回滚环境时出现如下错误:

Proceed ([y]/n)? y

Preparing transaction: done
Verifying transaction: failed

RemoveError: This operation will remove conda without replacing it with
another version of conda.

问题原因

指定的修订版本1中未包含conda包,执行回滚会直接卸载conda且无替代版本,触发保护机制报错。

解决步骤

  • 先查看所有可用修订版本,确认包含conda的有效版本:

    conda list --revisions
    

    输出会展示每个修订的变更记录,找到明确保留或安装了conda的版本号。

  • 使用找到的有效版本号执行回滚,比如修订版本3:

    conda install --revision 3
    
  • 若所有旧修订都不含conda,或回滚仍失败,直接重新安装conda:

    1. 下载对应系统的Miniconda/Anaconda安装脚本
    2. 执行安装脚本并覆盖现有环境:
      # Linux示例
      bash Miniconda3-latest-Linux-x86_64.sh -b -u
      
      # Windows示例
      .\Miniconda3-latest-Windows-x86_64.exe /S /D=%USERPROFILE%\miniconda3
      

内容的提问来源于stack exchange,提问作者Rebel

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.04 19:06:06