我正在尝试在高山码头工人中安装scikit-image,但由于某些原因,它会不断抛出No module named 'numpy'
错误
这里是Dockerfile
COPY requirements.txt requirements.txt
# Installing System Libraries and Python Dependencies
RUN apk update && apk add --no-cache gcc musl-dev make && ln -s /usr/include/locale.h /usr/include/xlocale.h \
&& pip install -r requirements.txt && apk del gcc musl-dev make
这是requirements.txt
numpy
matplotlib
scikit-image
scikit-learn
FROM alpine
COPY ./requirements.txt /temp/requirements.txt
# Installing System Libraries and Python Dependencies
WORKDIR '/temp'
RUN apk update && apk add --update py-pip && apk add --no-cache gcc musl-dev make && ln -s /usr/include/locale.h /usr/include/xlocale.h \
&& pip install -r requirements.txt && apk del gcc musl-dev make