pip install PIL fails
Pillow is a maintained fork of PIL, so I recommend using Pillow. But you can't have both installed at the same time.
First, remove both PIL and Pillow.
Then install Pillow with
pip install pillow
(although, depending on platform, you may need some prerequisites).Then make sure code is using
from PIL import Image
rather thanimport Image
.
You can try using Pillow instead, which is a PIL fork:
pip install Pillow
To import use following:
from PIL import Image
One solution was, right-click on 'from PIL import Image' and click'install Image'
I was on the PyCharm IDE.