python3 -m pip install --upgrade pip
python3 -m pip install --upgrade Pillow
# Warning 1
# Pillow and PIL cannot co-exist in the same environment.
# Before installing Pillow, please uninstall PIL.
# Warning 2
# Pillow >= 1.0 no longer supports import Image.
# Please use from PIL import Image instead.
# Warning 3
# Pillow >= 2.1.0 no longer supports import _imaging.
# Please use from PIL.Image import core as _imaging instead.
# for more detail, Please check below link:
https://pillow.readthedocs.io/en/latest/installation.html