conda create environment 命令给出 'Found conflicts! Looking for incompatible packages.'
conda create environment command gives 'Found conflicts! Looking for incompatible packages.'
我通过 choco install miniconda3
安装了 miniconda
。
创建 python3 环境效果很好。
conda create --name envA python=3 --verbose
但是创建python2环境有问题。
conda create --name envB python=2 --verbose
Collecting package metadata (current_repodata.json): ...working... done
Solving environment: ...working... failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): ...working... done
Solving environment: ...working...
Found conflicts! Looking for incompatible packages.
failed
Traceback (most recent call last):
...
File "C:\Users\fred\miniconda3\lib\site-packages\conda\resolve.py", line 352, in find_conflicts
raise UnsatisfiableError(bad_deps, strict=strict_channel_priority)
conda.exceptions.UnsatisfiableError
@cel 以此为荣
切换到曼巴舞提供了更好的诊断。
mamba create -n foo python=2
Looking for: ['python=2']
conda-forge/win-64 Using cache
conda-forge/noarch Using cache
Encountered problems while solving:
- nothing provides vc 9.* needed by python-2.7.12-0
然后用mamba找vc
.
mamba search vc
# Name Version Build Channel
vc 14.1 h21ff451_1 conda-forge
vc 14.1 h6d1b3ff_2 conda-forge
...
vc v9
可以在defaults
频道找到。
mamba search 'vc[channel=defaults]'
# Name Version Build Channel
vc 9 h2eaa2aa_6 pkgs/main
...
用 defaults
频道更新 .condarc
,解决了问题。
channels:
- conda-forge
- defaults
channel_priority: disabled
最后一点,如果其他人发现自己处于这种情况...
作为安装 mambaforge
.
的一部分,~/.condarc
已更改(删除 defaults
频道)
我通过 choco install miniconda3
安装了 miniconda
。
创建 python3 环境效果很好。
conda create --name envA python=3 --verbose
但是创建python2环境有问题。
conda create --name envB python=2 --verbose
Collecting package metadata (current_repodata.json): ...working... done
Solving environment: ...working... failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): ...working... done
Solving environment: ...working...
Found conflicts! Looking for incompatible packages.
failed
Traceback (most recent call last):
...
File "C:\Users\fred\miniconda3\lib\site-packages\conda\resolve.py", line 352, in find_conflicts
raise UnsatisfiableError(bad_deps, strict=strict_channel_priority)
conda.exceptions.UnsatisfiableError
@cel 以此为荣
切换到曼巴舞提供了更好的诊断。
mamba create -n foo python=2
Looking for: ['python=2']
conda-forge/win-64 Using cache
conda-forge/noarch Using cache
Encountered problems while solving:
- nothing provides vc 9.* needed by python-2.7.12-0
然后用mamba找vc
.
mamba search vc
# Name Version Build Channel
vc 14.1 h21ff451_1 conda-forge
vc 14.1 h6d1b3ff_2 conda-forge
...
vc v9
可以在defaults
频道找到。
mamba search 'vc[channel=defaults]'
# Name Version Build Channel
vc 9 h2eaa2aa_6 pkgs/main
...
用 defaults
频道更新 .condarc
,解决了问题。
channels:
- conda-forge
- defaults
channel_priority: disabled
最后一点,如果其他人发现自己处于这种情况...
作为安装 mambaforge
.
~/.condarc
已更改(删除 defaults
频道)