错误:在ARM64体系结构上找不到Catboost的匹配分布

发布于 2025-01-22 04:57:41 字数 1113 浏览 3 评论 0原文

我正在尝试使用buildx命令为ARM64构建多架结构图像。我正在使用Python:3.8-SLIM作为基本图像,并尝试使用PIP安装Catboost,但我会遇到以下错误。

错误

ERROR: Could not find a version that satisfies the requirement catboost==1.0.4 (from versions: none)

ERROR: No matching distribution found for catboost==1.0.4

dockerfile

FROM --platform=linux/arm64/v8 python:3.8-slim

RUN apt update && \
    apt upgrade -y && \
    pip install -U pip && \
    pip install --upgrade setuptools

steps...

命令

docker buildx build --platform linux/arm64 -t dockerId:test-arm -f ./dockerfiles/Dockerfile .

替代方案,我尝试了

  1. 我尝试使用-platform = linux /AMD64成功地构建ARM64,但在我在臂机上部署时仍无法使用。

  2. 我已经使用anaconda安装软件包,但是安装catboost的错误保持不变。

#0 122.6 PackagesNotFoundError: The following packages are not available from current channels:
#0 122.6 
#0 122.6   - catboost

这是对#CATBOOST团队的大喊大叫。我目前正在截止日期,并想知道Catboost是否在Docker Image上支持ARM64。

I am trying to build a multi-architecture image for ARM64 using buildx command. I am using python:3.8-slim as a base image and trying to install catboost using pip, but I am getting the following error.

ERROR

ERROR: Could not find a version that satisfies the requirement catboost==1.0.4 (from versions: none)

ERROR: No matching distribution found for catboost==1.0.4

Dockerfile

FROM --platform=linux/arm64/v8 python:3.8-slim

RUN apt update && \
    apt upgrade -y && \
    pip install -U pip && \
    pip install --upgrade setuptools

steps...

Command

docker buildx build --platform linux/arm64 -t dockerId:test-arm -f ./dockerfiles/Dockerfile .

Alternatives I have tried

  1. In the Dockerfile I tried using the --platform=linux/amd64 which builds the arm64 successfully but still doesn't work when I deploy it on the ARM machine.

  2. I have used anaconda for installing the packages but the error to install catboost remains the same.

#0 122.6 PackagesNotFoundError: The following packages are not available from current channels:
#0 122.6 
#0 122.6   - catboost

This is a shoutout to the #catboost team. I am currently working on a deadline and would like to know if the catboost has support for ARM64 over a docker image.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文