conda 更新会阻止一切。
Conda ENV 解决需要数小时且永远
可能是由于 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文档
conda config --set allow_conda_downgrades true
conda install conda=4.6.11
它再次正常工作。
我使用win10 1903,python 3.7和conda 4.7。
我将 conda 降级到 4.6.14 并重新启动。然后一切正常。
新版本的 conda 已经出来了! 版本 4.7.10它在金丝雀频道上。运行以下命令并检查它是否修复了问题:
conda update conda -c conda-canary
或:
conda update -n base -c defaults cond
如 https://github.com/conda/conda/issues/8954 所述,与conda相关的一些问题已修复。