尝试在 Docker 容器中安装时,Pip 找不到最新版本的软件包

问题描述 投票:0回答:1

我正在尝试在 AWS Sagemaker 内的 Jupyter Notebook 中运行 Docker 容器。 DockerFile 来自一个模板,该模板一直有效,直到我添加了一个额外的 RUN 命令以及我想要安装的一些 ML 包。

`

来自 ubuntu:18.04

维护者 Amazon AI [电子邮件受保护]

运行 apt-get -y update && apt-get install -y --no-install-recommends
wget
python3-pip
python3-setuptools
nginx
ca 证书
&& rm -rf /var/lib/apt/lists/*

运行 ln -s /usr/bin/python3 /usr/bin/python 运行 ln -s /usr/bin/pip3 /usr/bin/pip

运行 pip --no-cache-dir install mlforecast==0.13.1 Neuroforecast==1.7.3 optuna==3.6.1 pandas==2.2.2plotly==5.22.0 statsforecast==1.7.6 torch== 2.3.1 utilsforecast==0.1.12

运行 pip --no-cache-dir 安装 scipy==1.2.1 scikit-learn==0.20.2 熊猫烧瓶gunicorn

ENV PYTHONUNBUFFERED=TRUE

ENV Python不写字节码=TRUE

环境路径=“/ opt /程序:$ {PATH}”

复制决策树/opt/program WORKDIR /opt/程序

`

但是,当从 Jupyter Labs 文件构建容器时,会出现错误“找不到满足 mlforecast==0.13.1 要求的版本”,并且仅列出最高 0.9.3 的可用版本。差不多一年前就出来了。

我尝试使用不同版本的 Ubuntu 和不同的修饰符(例如“--no-use-wheel --allow-all-external --allow-unverified flasher”)运行该文件,但这些都在到达之前生成了不同的错误版本错误。

python docker pip jupyter amazon-sagemaker
1个回答
0
投票

Ubuntu 18.04 使用 Python 3.6 运行,最新版本的 mlforecast 需要 Python >= 3.8

© www.soinside.com 2019 - 2024. All rights reserved.