【问题标题】:Conda error on update: `conda.core.link:_execute(637): An error occurred while installing package 'None'. AssertionError()`更新时的 Conda 错误:`conda.core.link:_execute(637):安装包“无”时出错。断言错误()`
【发布时间】:2019-06-30 17:45:14
【问题描述】:

今天通过conda update --all 更新 conda 时,它会下载几个包并几乎完成安装,但最后给出了

Preparing transaction: done
Verifying transaction: done
Executing transaction: done
ERROR conda.core.link:_execute(637): An error occurred while installing package 'None'.
AssertionError()
Attempting to roll back.

Rolling back transaction: done

AssertionError()
()

【问题讨论】:

  • 有同样的错误 ERROR conda.core.link:_execute(637): An error occurred while installed package 'None'
  • 尚无解决方案,但未解决的问题:github.com/conda/conda/issues/8831
  • 我发现conda install conda 最终帮我解决了问题。那是在尝试删除一堆没有运气的包之后。

标签: python conda


【解决方案1】:

conda install anaconda 对我失败时,命令conda install conda 也对我有用。我不确定为什么后者不起作用。否则我会收到ERROR conda.core.link:_execute(637) 错误。

【讨论】:

    【解决方案2】:

    问题似乎与 env 中的旧软件包有关,这些旧软件包与您尝试更新的软件包版本不兼容。通过以下步骤解决:

    1. 在 env 中更新了 spyder 3.3.6 的依赖包
    2. 安装了最新版本的 conda

      conda 安装 conda

    3. 更新了 spyder:

      conda update spyder

    在那之后我一切都很好!

    【讨论】:

    • 安装conda install conda 会产生同样的错误。我猜我应该以某种方式清除旧安装并下载新安装程序。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-12-31
    • 1970-01-01
    • 2021-09-06
    • 2022-10-25
    • 1970-01-01
    相关资源
    最近更新 更多