I read the answers to similar questions, but none of them seem to work for my situation. When I try to use Pillow, I get this error:
>>> from PIL import Image
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Python/2.7/site-packages/PIL/Image.py", line 63, in <module>
from PIL import _imaging as core
ImportError: cannot import name _imaging
In my / Library / Python / 2.7 / site-packages directory, I have one PIL directory that contains the Image module, and then I have a PIllow-master directory containing _imaging.c, so I don’t understand why in Image. py line 63 talks about importing _imaging from PIL. I also tried cutting out _imaging.c from Pillow-master and pasting it into PIL, but it does not work. When I tried to import an image, I ended up in PIL. If I try to import it while I enter the site packages, it does not work and says "there is no module named PIL".
source
share