Debian pretty much "solved" this by making pip refuse to install packages if you are not in an venv.

It needed distro buy in and implementation, but this is from the Python side: https://peps.python.org/pep-0668/

IIRC that's actually a change in upstream pip.

Ditto OpenSUSE, at least on Tumbleweed

Well, with my python 3.13.5 not even that works!

Pretty impressive but this seems to be a staple of most AI/ML projects.

"Works on my machine" or "just use docker", although here the later doesn't even seem to be an option.