For Termux:
I got the same error while trying to install shis with pip.
pip
Installing libjpeg-turbo fixed the issue:
libjpeg-turbo
pkg in libjpeg-turbo