如何解决为什么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版本?还是我最好手动解决此问题?
解决方法
{p> 3,似乎不支持
3.8,尽管3.7安装条件可能包含错误。
在这种情况下,您可以尝试与作者联系或尝试点子。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。