畅达更新刹车一切。
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 许可协议
这个解决方案帮助了我的系统,设置了一个 conda 配置参数 conda docs
它又可以正常工作了。