-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Description
Using windows 10
python 2.7
used pip install matplotlib
import matplotlib works well but when "import matplotlib.pyplot as plt" the following course of errors occur
Using Eclipse IDE and even the python interpreter throws same error
please help
Thank you
import matplotlib.pyplot as plt
Traceback (most recent call last):
File "", line 1, in
File "C:\Python27\lib\site-packages\matplotlib\pyplot.py", line 114, in
backend_mod, new_figure_manager, draw_if_interactive, show = pylab_setup()
File "C:\Python27\lib\site-packages\matplotlib\backends__init.py", line 32, in pylab_setup
globals(),locals(),[backend_name],0)
File "C:\Python27\lib\site-packages\matplotlib\backends\backend_tkagg.py", line 6, in
from matplotlib.externals.six.moves import tkinter as Tk
File "C:\Python27\lib\site-packages\matplotlib\externals\six.py", line 199, in load_module
mod = mod._resolve()
File "C:\Python27\lib\site-packages\matplotlib\externals\six.py", line 113, in _resolve
return _import_module(self.mod)
File "C:\Python27\lib\site-packages\matplotlib\externals\six.py", line 80, in _import_module
import(name)
File "C:\Python27\lib\lib-tk\Tkinter.py", line 38, in
import FixTk
File "C:\Python27\lib\lib-tk\FixTk.py", line 65, in
import _tkinter
ImportError: DLL load failed: %1 is not a valid Win32 application.