我很好奇为什么
pip3
@ public.ecr.aws/lambda/python:3.11
(Python v3.11.4) 下载并安装 lxml
的源代码发行版,而不是下载看似兼容的 Manylinux Wheel lxml-4.9.3-cp311-cp311-manylinux_2_28_aarch64.whl
?
https://pypi.org/project/lxml/#files
上面的轮子已下载,例如作者:
pip3
@amazonlinux
(Python v3.11.2):
示例:
$ docker run -ti --rm --user 0 --platform linux/arm64 --entrypoint bash public.ecr.aws/lambda/python:3.11
$ pip3 install lxml
bash-4.2# ldd --version
ldd (GNU libc) 2.26
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.
docker 镜像使用 glibc 2.26,manylinux Wheel 是为 glibc 2.28 构建的。