Cant import Pillow correctly

Viewed 57

I got a problem with importing Pillow.

ImportError: cannot import name '_imaging' from 'PIL'

Import way:

from PIL import Image

PIL installation: pip install Pillow

  1. I hasnt try to install Pillow over a PIL installation (default problem i think, after Internet research)
  2. I have already reinstalled it with PIP.
  3. All other imports working correctly

Have a nice day!

1 Answers

Pillow docs mention:

Pillow >= 2.1.0 no longer supports import _imaging. Please use from PIL.Image import core as _imaging instead.

Did you try that?


Another attempt:

pip install -U Pillow

Read more in ImportError: cannot import name _imaging.

PS: PIL is deprecated - Pillow is its replacement.

Related