Install the Pillow library by following commands:
pip install pillow
Note, the selected answer has been outdated. See the docs of SciPy
Note that Pillow (https://python-pillow.org/) is not a dependency of SciPy, but the image manipulation functions indicated in the list below are not available without it.