import Image, ImageTk code example
Example 1: ImportError: cannot import name 'ImageTK'
sudo apt-get install python3-pil python3-pil.imagetk
Example 2: ImportError: cannot import name 'ImageTk'
# python 2
sudo apt-get install python-imaging python-pil.imagetk
# python 3
sudo apt-get install python3-pil python3-pil.imagetk
Example 3: mportError: cannot import name 'ImageTK' from 'PIL'
from PIL import Image, ImageTk