Docker python alpine 3.9缺少ibtbb

Docker python alpine 3.9缺少ibtbb,python,docker,ubuntu,build,alpine,Python,Docker,Ubuntu,Build,Alpine,我试图在python alpine3.9上安装libtb库(文档清楚地说,它是可用的:),但每当我尝试构建映像时,我都会收到以下错误: ERROR: unsatisfiable constraints: libtbb (missing): required by: world[libtbb] Dockerfile代码: FROM python:3.7-alpine3.9 # Let the container know that there is no TTY ARG DEBIAN

我试图在python alpine3.9上安装libtb库(文档清楚地说,它是可用的:),但每当我尝试构建映像时,我都会收到以下错误:

ERROR: unsatisfiable constraints:
  libtbb (missing):
    required by: world[libtbb]
Dockerfile代码:

FROM python:3.7-alpine3.9
# Let the container know that there is no TTY
ARG DEBIAN_FRONTEND=noninteractive
# Metapackage that pulls in the most essential packages used to build new packages

# Install packages
RUN apk update \
    && apk add g++ \
    libc6-compat \
    make \
    build-base \
    openblas-dev \
    unzip \
    cmake \
    curl \
    ca-certificates \
    libstdc++  \
    libxml2 \
    zip \
    libtbb  \
    lua5.2 \
    wget \
    cmake clang clang-dev make gcc g++ libc-dev linux-headers \
    boost-dev \
    && apk add --virtual build-deps gcc g++ python3-dev musl-dev
在同一命令中添加
--在
apk update
之后不添加缓存
Add
,而不添加
&
,因此
apk update
将影响
Add
命令,并将为后续包更新存储库

--update
标志在添加包之前获取当前包索引

--apk无缓存
选项。它允许用户安装带有索引的软件包,该索引是动态更新和使用的,而不是本地缓存的:

FROM python:3.7-alpine3.9
# Let the container know that there is no TTY
ARG DEBIAN_FRONTEND=noninteractive
# Metapackage that pulls in the most essential packages used to build new packages

# Install packages
RUN apk update --no-cache add \
    g++ \
    libc6-compat \
    make \
    build-base \
    openblas-dev \
    unzip \
    cmake \
    curl \
    ca-certificates \
    libstdc++  \
    libxml2 \
    zip \
    libtbb  \
    lua5.2 \
    wget \
    cmake clang clang-dev make gcc g++ libc-dev linux-headers \
    boost-dev \
    && apk add --virtual build-deps gcc g++ python3-dev musl-dev
根据我的经验,这适用于当前命令,因此这可能是原因,但我在文档中没有找到这样的内容,但是
apk
帮助显示了这一点

usage: apk COMMAND [-h|--help] [-p|--root DIR] [-X|--repository REPO] [-q|--quiet] [-v|--verbose] [-i|--interactive] [-V|--version] [-f|--force]
           [--force-binary-stdout] [--force-broken-world] [--force-non-repository] [--force-old-apk] [--force-overwrite] [--force-refresh] [-U|--update-cache]
           [--progress] [--progress-fd FD] [--no-progress] [--purge] [--allow-untrusted] [--wait TIME] [--keys-dir KEYSDIR] [--repositories-file REPOFILE]
           [--no-network] [--no-cache] [--cache-dir CACHEDIR] [--arch ARCH] [--print-arch] [ARGS]...