JupyterHub (LTJH) on Raspberry Pi 5

What if you use %pip install via the notebook? (Which is what you should be using inside a running notebook in modern Jupyter these days, since 2019. I know the TLJH is still using old tech, but I think that is what you should be using.)