Get error when try to install PIL [duplicate]

Solution 1:

You could try using Pillow instead, which is a PIL fork:

pip install Pillow

To import use:

from PIL import Image

Solution 2:

The library PIL is in Pillow. Try this:

$ pip install Pillow