Several posts were advising to import Pillow using pip, after having uninstalled both PIL and Pillow, what i did :
python -m pip uninstall Pillow (worked)
python -m pip uninstall PIL (PIL was not installed)
python -m pip install Pillow (worked, i guess it was fine already)
Then, according to these posts, using "from PIL import Image" in python should work. I get the error "ImportError: No module named 'PIL'".
I tried "import Image" and "from Pillow import Image" but none of that works either. I'm on windows and using python 3.4.1.
Do you know what to do? Thanks
EDIT : pip had installed Pillow in anaconda3, and not in the python file I use.
I copied/pasted the pillow egg file in site-packages and import PIL
now works.
However, from PIL import Image
still does not work : i get ImportError: cannot import name 'Image'
EDIT : the problem was that the egg file was not working proerly (i think). I had to add my own python path to the paths in the environment variables, then i could install pillow with pip. But i now have another error.. from PIL import Image
returns :
C:\Users\Loic\Documents\Python\pyzo2014a\lib\site-packages\PIL\Image.py in <module>()
25 #
26
---> 27 from . import VERSION, PILLOW_VERSION, _plugins
28
29 import logging
ImportError: cannot import name 'VERSION'
There is, indeed, no VERSION.py file in the PIL lib. Does that mean i've not installed it correctly? After having defined the python path and installed it with pip in cmd, everything should be fine...