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

新手上路,请多包涵

畅达更新刹车一切。

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 个小时。

原文由 InLaw 发布,翻译遵循 CC BY-SA 4.0 许可协议

阅读 2.2k
2 个回答

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

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

它又可以正常工作了。

原文由 InLaw 发布,翻译遵循 CC BY-SA 4.0 许可协议

我使用 win10 1903、python 3.7 和 conda 4.7。

我将 conda 降级到 4.6.14 并重新启动。然后一切正常。

原文由 James Jing 发布,翻译遵循 CC BY-SA 4.0 许可协议

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题