You should try this first
pip3 install -U Pillow -t /media/sda/seafile/seafile-server-latest/seahub/thirdpart