X Tutup
Skip to content

import matplotlib.pyplot as plt throws an erro #6742

@ksrinidhipatil

Description

@ksrinidhipatil

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      X Tutup