为什么 conda 拒绝我尝试的每个 python 版本?

Why is conda rejecting every version of python I try?

我正在尝试从 Anaconda Cloud 安装一个名为 pyradiomics 的软件包。所以我写了这个 Dockerfile:

FROM continuumio/miniconda3:latest
RUN conda install -c radiomics pyradiomics

错误消息:

UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:

Specifications:

  - pyradiomics -> python[version='>=3.8,<3.9.0a0']

Your python: python=3.7

If python is on the left-most side of the chain, that's the version you've asked for.
When python appears to the right, that indicates that the thing on the left is somehow
not available for the python version you are constrained to. Note that conda will not
change your python version to a different minor version unless you explicitly specify
that.

错误消息似乎表明我需要 python 的 3.8 版本,所以我尝试安装它

FROM continuumio/miniconda3:latest
RUN conda install -c anaconda python=3.8 && python --version && conda install -c radiomics pyradiomics

但现在得到错误:

UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:

Specifications:

  - pyradiomics -> python[version='>=2.7,<2.8.0a0|>=3.5,<3.6.0a0|>=3.6,<3.7.0a0|>=3.7,<3.8.0a0|>=3.4,<3.5.0a0']

Your python: python=3.8

当我有 python 3.7 时,它需要 3.8,而当我有 3.8 时,它需要其他版本。有没有办法让 conda 自动解决这些版本问题并安装(所有)必要的 python 版本?或者我如何最好地手动解决这个问题?

3.8 似乎不受 https://pyradiomics.readthedocs.io/en/latest/installation.html#install-via-conda 的支持,尽管 3.7 安装条件可能包含错误。

这种情况你可以尝试联系作者或者用pip试试