gpt4 book ai didi

python - conda 4.7.7 -> 4.6 - 收集包元数据 (current_repodata.json) - (channel conda-forge) ipywidgets-5.2.3-py36_0 由于 InvalidSpec : ==1. *

转载 作者:行者123 更新时间:2023-12-04 11:33:13 25 4
gpt4 key购买 nike

conda update 会阻止一切。

conda env-solving 花费了数小时甚至永远

可能是由于 conda 优化:
https://www.anaconda.com/why-we-removed-the-free-channel-in-conda-4-7/

但这打破了许多系统(如我的):
https://github.com/conda/conda/issues/8844

有错误,如

Collecting package metadata (current_repodata.json): - WARNING conda.models.version:get_matcher(531): Using .* with relational operator is superfluous and deprecated and will be removed in a future version of conda. Your spec was 1.*, but conda is ignoring the .* and treating it as 1
done
Solving environment: failed with current_repodata.json, will retry with next repodata source.
Initial quick solve with frozen env failed. Unfreezing env and trying again.
Solving environment: failed with current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done

所以我降级为 conda=4.6

但得到
Collecting package metadata: / WARNING conda.core.index:push_record(193): Skipping conda-forge/label/broken/linux-64::ipywidgets-5.2.3-py36_0 due to InvalidSpec: ==1.*
WARNING conda.core.index:push_record(193): Skipping conda-forge/label/broken/linux-64::ipywidgets-5.2.3-py27_0 due to InvalidSpec: ==1.*
WARNING conda.core.index:push_record(193): Skipping conda-forge/label/broken/linux-64::ipywidgets-5.2.3-py35_0 due to InvalidSpec: ==1.*
done
Solving environment: failed

InvalidVersionSpec: Invalid version '==1.*': invalid operator with '.*'


conda install conda=4.7 
Collecting package metadata: failed

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: /home/aeug/conda
current conda version: 4.6.0
minimum conda version: 4.7

有什么可以再次修复系统/环境吗?

我能看到的只是用旧的 conda 4.6.11 https://repo.anaconda.com/miniconda/ 重新安装
conda install conda=4.6
conda config --set pip_interop_enabled True

我可以用一些错误重建环境,但花了大约 6 个小时。

最佳答案

这个解决方案帮助了我的系统,设置了 conda 配置参数 conda docs

conda config --set allow_conda_downgrades true
conda install conda=4.6.11

它再次正常工作。

关于python - conda 4.7.7 -> 4.6 - 收集包元数据 (current_repodata.json) - (channel conda-forge) ipywidgets-5.2.3-py36_0 由于 InvalidSpec : ==1. *,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57117855/

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