Invenio-IIIF is on PyPI so all you need is:
$ pip install invenio-iiif
Invenio-IIIF uses Pillow for image processing.
To create cover images from PDFs, you need to install locally the ImageMagick image library. See https://imagemagick.org for details.