[Python] DLL load failed while importing _imaging:

Discussão em 'Python' iniciado por Stack, Novembro 27, 2025.

  1. Stack

    Stack Membro Participativo

    I'm trying to run my Python program and these are the modules I'm importing:


    from tkinter import * from functools import partial
    import numpy as np import matplotlib matplotlib.use("TkAgg")
    from matplotlib.figure import Figure from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg, NavigationToolbar2Tk
    ​

    I always end up with the following error message:

    C:\Users\HP\anaconda3\lib\site-packages\numpy\__init__.py:138: UserWarning: mkl-service package failed to import, therefore Intel(R) MKL initialization ensuring its correct out-of-the box operation under condition when Gnu OpenMP had already been loaded by Python process is not assured. Please install mkl-service package, see http://github.com/IntelPython/mkl-service
    from . import _distributor_init
    Traceback (most recent call last):
    File "ASRS.py", line 12, in <module>
    from matplotlib.figure import Figure
    File "C:\Users\HP\AppData\Roaming\Python\Python38\site-packages\matplotlib\figure.py", line 18, in <module>
    from matplotlib import docstring, projections
    File "C:\Users\HP\AppData\Roaming\Python\Python38\site-packages\matplotlib\projections\__init__.py", line 1, in <module>
    from .. import axes, docstring
    File "C:\Users\HP\AppData\Roaming\Python\Python38\site-packages\matplotlib\axes\__init__.py", line 1, in <module>
    from ._subplots import *
    File "C:\Users\HP\AppData\Roaming\Python\Python38\site-packages\matplotlib\axes\_subplots.py", line 6, in <module>
    from matplotlib.axes._axes import Axes
    File "C:\Users\HP\AppData\Roaming\Python\Python38\site-packages\matplotlib\axes\_axes.py", line 14, in <module>
    import matplotlib.contour as mcontour
    File "C:\Users\HP\AppData\Roaming\Python\Python38\site-packages\matplotlib\contour.py", line 17, in <module>
    import matplotlib.text as text
    File "C:\Users\HP\AppData\Roaming\Python\Python38\site-packages\matplotlib\text.py", line 16, in <module>
    from .textpath import TextPath # Unused, but imported by others.
    File "C:\Users\HP\AppData\Roaming\Python\Python38\site-packages\matplotlib\textpath.py", line 11, in <module>
    from matplotlib.mathtext import MathTextParser
    File "C:\Users\HP\AppData\Roaming\Python\Python38\site-packages\matplotlib\mathtext.py", line 27, in <module>
    from PIL import Image
    File "C:\Users\HP\anaconda3\lib\site-packages\PIL\Image.py", line 94, in <module>
    from . import _imaging as core
    **ImportError: DLL load failed while importing _imaging: Belirtilen modül bulunamadı.**


    How can I fix this?

    Continue reading...

Compartilhe esta Página