【问题标题】:Why is conda rejecting every version of python I try?为什么 conda 拒绝我尝试的每个版本的 python?
【发布时间】:2020-08-16 14:24:09
【问题描述】:

我正在尝试从 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 版本?或者我如何最好地手动解决这个问题?

【问题讨论】:

    标签: python docker anaconda conda


    【解决方案1】:

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

    在这种情况下,您可以尝试联系作者或尝试使用 pip。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-11-11
      • 1970-01-01
      • 2012-04-05
      相关资源
      最近更新 更多