Debian bookworm's python3-venv seeds pip 23.0.1, which rejects the PyTorch CPU index's typing_extensions wheel because its metadata spells the name with an underscore. It then falls back to the sdist, whose build needs flit_core, which that index does not carry.