我正在尝试从Anaconda安装一个名为放射性组学的包。所以我写了这个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.错误消息似乎表明我需要版本3.8的python,所以我试着安装它。
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当我有python3.7时,它想要3.8,当我有3.8,它想要其他版本。有没有一种方法可以让conda自动解决这些版本问题,并安装(所有) python的版本?或者我如何最好地手动解决这个问题?
发布于 2020-08-16 14:29:48
https://pyradiomics.readthedocs.io/en/latest/installation.html#install-via-conda似乎不支持3.8,尽管3.7安装条件可能包含一个错误。
在这种情况下,您可以尝试联系作者或尝试使用pip。
https://stackoverflow.com/questions/63438022
复制相似问题