I want to work with images in python, but I get an error when I try to use PIL. I want to import images from PIL with the following command:
from PIL import Image
But I get the following error:
Traceback (most recent call last):
File "<pyshell#15>", line 1, in <module>
from PIL import Image
File "C:\Users\User\AppData\Local\Programs\Python\Python36-32\lib\site-packages\PIL\Image.py", line 56, in <module>
from . import _imaging as core
ImportError: DLL load failed: A megadott eljárás nem található.
(The last sentence translates to 'The specified procedure could not be found')
I followed the instructions under this question and uninstalled Pillow 4.1.0 and reinstalled Pillow 4.0.0. It didn't solve my problem, but now I get a different error message:
Warning (from warnings module):
File "C:\Users\User\AppData\Local\Programs\Python\Python36-32\lib\site-packages\PIL\Image.py", line 74
# Explanations for ways that we know we might have an import error
RuntimeWarning: The _imaging extension was built for another version of Pillow or PIL
Traceback (most recent call last):
File "<pyshell#19>", line 1, in <module>
from PIL import Image
File "C:\Users\User\AppData\Local\Programs\Python\Python36-32\lib\site-packages\PIL\Image.py", line 58, in <module>
raise ImportError("The _imaging extension was built for another "
ImportError: The _imaging extension was built for another version of Pillow or PIL
Following the instructions on another question I uninstalled PIL (but failed because it wasn't installed in the first place), then uninstalled pillow, and then reinstalled pillow (the newest version), but I still get the second error message.
I am using windows 8.1 and python 3.6.0. Does anybody know how to solve this problem?