python - Installing MatPlotLib in windows -
i can't seem matplotlib work. downloaded , installed correct version (matplotlib-1.1.0.win32-py2.7.exe), , have numpy , scipy installed (and work no problems).
this error get:
c:\python code>python python 2.7.3 (default, apr 10 2012, 23:31:26) [msc v.1500 32 bit (intel)] on win 32 type "help", "copyright", "credits" or "license" more information. >>> import matplotlib.pyplot plt traceback (most recent call last): file "<stdin>", line 1, in <module> file "c:\python27\lib\site-packages\matplotlib\pyplot.py", line 95, in <module> new_figure_manager, draw_if_interactive, _show = pylab_setup() file "c:\python27\lib\site-packages\matplotlib\backends\__init__.py", line 25, in pylab_setup globals(),locals(),[backend_name]) file "c:\python27\lib\site-packages\matplotlib\backends\backend_tkagg.py", lin e 8, in <module> import tkinter tk, filedialog file "c:\python27\lib\lib-tk\tkinter.py", line 38, in <module> import fixtk file "c:\python27\lib\lib-tk\fixtk.py", line 65, in <module> import _tkinter importerror: dll load failed: %1 not valid win32 application. >>> any ideas?
this problem occurs when have previous 64-bit version of python incorrectly uninstalled.
uninstalling both versions of python correctly, , reinstalling 32-bit python fixed problem.
Comments
Post a Comment