这是我的(简化的) Dockerfile
# https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-create-from-base
FROM public.ecr.aws/lambda/python:3.8
# get the amazon linux extras
RUN yum install -y amazon-linux-extras
RUN amazon-linux-extras install epel -y当它在构建过程中到达RUN amazon-linux-extras install epel -y行时,它将
Step 6/8 : RUN amazon-linux-extras install epel -y
---> Running in dbb44f57111a
/var/lang/bin/python: No module named amazon_linux_extras
The command '/bin/sh -c amazon-linux-extras install epel -y' returned a non-zero code: 1我想这和蟒蛇2比3有关,但我不确定
发布于 2022-07-20 18:42:14
您是对的,因为amazon-linux-extras只适用于Python2。
https://stackoverflow.com/questions/73056540
复制相似问题