对接机
FROM python:3.8-alpine
MAINTAINER ABC
ENV PYTHONUNBUFFERED 1
COPY ./requirements.txt /requirements.txt
RUN apk add gcc freetype-dev
RUN apk add gfortran musl-dev g++ libgcc libquadmath musl libgfortran
RUN apk add lapack-dev
RUN apk add libffi-dev libxslt-dev mariadb-dev build-base --virtual --no-cache && \
pip install -U cffi pip setuptools && \
pip3 install --upgrade pip --no-cache-dir wheel -r requirements.txt
RUN mkdir /code
WORKDIR /code
COPY ./code /code
在我写的requirements.txt中
scipy==1.5.2
出现错误
ERROR: No matching distribution found for scipy==1.5.2
ERROR: Service 'web' failed to build: The command '/bin/sh -c apk add libffi-dev libxslt-dev mariadb-dev && pip install -U cffi pip setuptools && pip3 install --upgrade pip --no-cache-dir wheel -r requirements.txt' returned a non-zero code: 1
如何消除此错误?
1条答案
按热度按时间mfuanj7w1#
您错过了用于安装
scipy
的blas
软件包,接下来是用于安装scipy
的最小Dockerfile
软件包,仅供参考:停靠文件:
执行日期: