首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >为什么conda拒绝我尝试的每一个版本的python?

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

Stack Overflow用户
提问于 2020-08-16 14:24:09
回答 1查看 493关注 0票数 1

我正在尝试从Anaconda安装一个名为放射性组学的包。所以我写了这个Dockerfile:

代码语言:javascript
复制
FROM continuumio/miniconda3:latest
RUN conda install -c radiomics pyradiomics

它错误地传达了以下信息:

代码语言:javascript
复制
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,所以我试着安装它。

代码语言:javascript
复制
FROM continuumio/miniconda3:latest
RUN conda install -c anaconda python=3.8 && python --version && conda install -c radiomics pyradiomics

但是现在得到错误:

代码语言:javascript
复制
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的版本?或者我如何最好地手动解决这个问题?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-08-16 14:29:48

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

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

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/63438022

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档