为什么 public.ecr.aws/lambda/python:3.11 上的 `pip3 install lxml` 安装源代码发行版而不是(manylinux)轮子?

问题描述 投票:0回答:1

我很好奇为什么

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

python linux pip python-poetry python-wheel
1个回答
0
投票
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 构建的。

© www.soinside.com 2019 - 2024. All rights reserved.