python - Error when trying to use matplotlib -


I'm just trying to plot an original line chart with dragon's matplotlib. But I am constantly getting errors and fixing one by one but this time it is stuck. I'm using Python 2.7 and below is the code that I'm trying to run.

  & gt; & Gt; & Gt; Import PLL as matplotlib.pyplot & gt; & Gt; & Gt; Plt.plot ([1,2,3,4]) gt; & Gt; & Gt; Plt.ylabel ('some number') & gt; & Gt; & Gt; Plt.show ()  

Below is Traceback What am I missing?

  & gt; Tracebacks (Last Call Last): File "& lt; pyshell # 9", line 1, in & gt; & Lt; Module & gt; & Gt; Import matplotlib.pyplot plt file "C: \ Python 27 \ lib \ site-packages \ matplotlib \ pyplot.py", line 24, in & gt; & Lt; Module & gt; & Gt; Import the matplotlib.colorbar file to "C: \ Python 27 \ lib \ site-packages \ matplotlib \ colorbar.py", in line 27, in & gt; & Lt; Module & gt; & Gt; Martplate leeches Import the startist as a martis file "C: \ Python27 \ lib \ site-packages \ matplotlib \ artist.py", line 8, in & gt; & Lt; Module & gt; & Gt; Transformedbox, \ "C: \ Python 27 \ lib \ site-packages \ matplotlib \ transforms.py", line & gt; 35, in & lt; Module & gt; & Gt; Matplotlib._path from import (affine_transform, count_bboxes_overlapping_bbox, importError: DLL load failed:% 1 is not a legitimate Win32 application.  

One possibility is that you have an older version of matplotlib installed for a different version of the Python, where the library was first installed on sys.path

For example, I found an ancient version in% USER% \ AppData \ Roaming \ Python \ Python27 \ site-packages


Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -