我在所有的miniconda环境中都遇到了一个错误。我刚才创造了一个全新的环境,但仍然会出现同样的错误:
conda create --name py36 python=3.6 spyder jupyter
^工作良好。然后:
conda install -c conda-forge/label/rc_iris iris
给出以下错误:
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: -
Found conflicts! Looking for incompatible packages.
This can take several minutes. Press CTRL-C to abort.
failed
UnsatisfiableError: The following specifications were found to be incompatible with each other:
Output in format: Requested package -> Available versionsThe following specifications were found to be incompatible with your system:
- feature:/linux-64::__glibc==2.17=0
- feature:|@/linux-64::__glibc==2.17=0
Your installed version is: 2.17
但出于某种原因,如果你创造了一个全新的环境,这是可行的:
conda create --name py36 -c conda-forge iris python=3.6 spyder jupyter
有人知道发生了什么事吗?当我尝试安装其他东西时,如何确保不会出现这种油嘴滑舌的错误?
这与GLIBC无关,相反,Conda只是不善于报告冲突。查看感兴趣的包可以清楚地看出它有python>=3.8
的要求。由于您将Conda锁定在python=3.6
中,它无法解决问题,并试图解释原因。
如果您真的有兴趣安装该候选版本,那么您需要在至少具有Pythonv3.8的环境中进行安装。