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

问题描述

我正在尝试从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版本?还是我最好手动解决此问题?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)