I am using Pycharm 2018.2.4 community edition on Ubuntu 18.04 and I have started python 2.7 project and using the IDE settings -> Project Interpreter I have installed Pillow but whenever I try:
from PIL import Image, ImageTk
I get the following error:
from PIL import Image, ImageTk ImportError: cannot import name ImageTk
how to fix this?
Have you installed it correctly?
apt-get install python3-pil python3-pil.imagetk
Just simply update your Pillow version to the latest for example PIL 7.0.0 worked for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With