docker python alpine numpy报错解决
作者:互联网
报错内容
untimeError: Broken toolchain: cannot link a simple C program
...
ERROR: Could not build wheels for numpy which use PEP 517 and cannot be installed directly
解决方法
# Dockerfile 在pip前安装g++
# 例如
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
RUN apk add --no-cache g++
RUN /usr/local/bin/python -m pip install --upgrade pip
RUN pip install -r requirement.txt
RUN pip install -r speech_synthesis/requirement.txt
标签:requirement,RUN,python,apk,报错,install,pip,docker 来源: https://www.cnblogs.com/wxx999/p/16142681.html