Leong YH
1
Q:

mportError: cannot import name 'ImageTK' from 'PIL'

sudo apt-get install python3-pil python3-pil.imagetk
0
from PIL import Image, ImageTk
0
# python 2
sudo apt-get install python-imaging python-pil.imagetk

# python 3
sudo apt-get install python3-pil python3-pil.imagetk
0

New to Communities?

Join the community