Skip to content

_imaging Failed to Import in from PIL import Image #5573

@johnsunxu

Description

@johnsunxu

What did you do?

from PIL import Image

What did you expect to happen?

Image would import without errors

What actually happened?

from PIL import Image
  File "C:\...\PIL\Image.py", line 114, in <module>
    from . import _imaging as core
ImportError: DLL load failed while importing _imaging: The specified module could not be found.`

What are your OS, Python and Pillow versions?

  • OS: Windows 10
  • Python: 3.9.5 (and 3.9.6)
  • Pillow: 8.3

I installed PIL 8.3 today and then ran into the _imaging import issue. There were previous old threads on a similar problem which mentioned reinstalling pillow but that did not work. I tried importing Image from a different device with python 3.9.5 and Pillow 8.3 without any issues so I then reinstalled python 3.9.5 on the device where pillow did not work. After reinstalling python, Pillow still ran into the same importing problems.

To get pillow to work I had to pip install version 8.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions