matplotlib in python 3.5: DLL load failed error


Installed matplotlib win 64 for python 3.5 while typing simple code:

import matplotlib.pyplot as plt
plt.ylabel('some numbers')

Throws the given error:

Traceback (most recent call last):   File "C:/Users/Kulnevich/PycharmProjects/untitled1/", line 2, in <module>
    import matplotlib.pyplot as plt   File "C:\Users\Kulnevich\AppData\Local\Programs\Python\Python35\lib\site-packages\matplotlib\", line 29, in <module>
    import matplotlib.colorbar   File "C:\Users\Kulnevich\AppData\Local\Programs\Python\Python35\lib\site-packages\matplotlib\", line 32, in <module>
    import matplotlib.artist as martist   File "C:\Users\Kulnevich\AppData\Local\Programs\Python\Python35\lib\site-packages\matplotlib\", line 14, in <module>
    from .transforms import (Bbox, IdentityTransform, TransformedBbox,   File "C:\Users\Kulnevich\AppData\Local\Programs\Python\Python35\lib\site-packages\matplotlib\", line 39, in <module>
    from matplotlib._path import (affine_transform, count_bboxes_overlapping_bbox, ImportError: DLL load failed: Не найден указанный модуль.

The installed module was checked in the folder, everything is in order, what is the problem?


The bitness of the installed library and Python does not match. Most likely you only have Python x86 installed.

If, nevertheless, the correct versions are installed, try reinstalling Python and installing matplotlib using the command: pip install matplotlib

Scroll to Top