Error when trying to open an image

Abdul Abdul abdul.sw84 at
Sun Nov 16 20:37:11 CET 2014


I'm trying to open an image using the `Python Imaging Library` as follows:

from PIL import Image
img ='xyz.jpg')

But, got the following error:

File "C:/Users/abc/PycharmProjects/untitled/", line 2, in
    from PIL import Image
  File "C:\Python34\lib\site-packages\PIL\", line 62, in <module>
    from PIL import _imaging as core
ImportError: DLL load failed: %1 is not a valid Win32 application.

Why is that? How can I solve this issue?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list