pip install PIL fails pip install PIL fails django django

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.

  1. First, remove both PIL and Pillow.

  2. Then install Pillow with pip install pillow (although, depending on platform, you may need some prerequisites).

  3. Then make sure code is using from PIL import Image rather than import 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.