gpt4 book ai didi

conda - 更新 conda 时出现断言错误

转载 作者:行者123 更新时间:2023-12-04 14:22:08 30 4
gpt4 key购买 nike

我尝试使用以下命令更新 conda:

~$ conda update conda

它输出以下消息:
WARNING conda.base.context:use_only_tar_bz2(632): Conda is constrained to only 
using the old .tar.bz2 file format because you have conda-build installed,
and it is <3.18.3. Update or remove conda-build to get smaller downloads
and faster extractions.
Collecting package metadata (repodata.json): done
Solving environment: -

The environment is inconsistent, please check the package plan carefully

The following packages are causing the inconsistency:

- defaults/linux-64::cytoolz==0.9.0.1=py37h14c3975_1

- and around 100 more

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()

我也试过
~$ conda update --all

但它给了我和以前一样的错误。

最佳答案

关于这个问题,我找到了一个没有很好解释但解决问题的解决方案:

第一:使用命令:

~$ conda install anaconda 

这就解决了环境不一致的问题。

第二:使用命令:
 ~$ conda update conda

该命令将毫无问题地执行,并且 conda 将被探测更新。

关于conda - 更新 conda 时出现断言错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56918742/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com