@afranke If installing from source, you'll need some external libraries in place:
https://pillow.readthedocs.io/en/stable/installation.html#building-from-source
But the wheels should contain what you need. Have a look inside:
https://inspector.pypi.io/project/pillow/10.0.0/
Maybe try both PyPI wheel and distro version out?