Question:
Installed matplotlib win 64 for python 3.5 while typing simple code:
import matplotlib.pyplot as plt
plt.plot([1,2,3])
plt.ylabel('some numbers')
plt.show()
Throws the given error:
Traceback (most recent call last): File "C:/Users/Kulnevich/PycharmProjects/untitled1/example.py", line 2, in <module>
import matplotlib.pyplot as plt File "C:\Users\Kulnevich\AppData\Local\Programs\Python\Python35\lib\site-packages\matplotlib\pyplot.py", line 29, in <module>
import matplotlib.colorbar File "C:\Users\Kulnevich\AppData\Local\Programs\Python\Python35\lib\site-packages\matplotlib\colorbar.py", line 32, in <module>
import matplotlib.artist as martist File "C:\Users\Kulnevich\AppData\Local\Programs\Python\Python35\lib\site-packages\matplotlib\artist.py", line 14, in <module>
from .transforms import (Bbox, IdentityTransform, TransformedBbox, File "C:\Users\Kulnevich\AppData\Local\Programs\Python\Python35\lib\site-packages\matplotlib\transforms.py", 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?
Answer:
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