python导入matplotlib失败问题
我在cmd模式下导入matplotlib,numpy,scipy都没有问题
但是在编辑器里面运行就出现错误了
问题的反馈如下:
1st
2nd
3rd
4th
5th
6th
7th
8th
9th
Traceback (most recent call last):
File "C:\Users\Zeng\Desktop\Python\python_work\tes.py", line 1, in <module>
from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas
File "C:\Python36\lib\site-packages\matplotlib\__init__.py", line 122, in <module>
from matplotlib.cbook import is_string_like, mplDeprecation, dedent, get_label
File "C:\Python36\lib\site-packages\matplotlib\cbook.py", line 32, in <module>
import numpy as np
File "C:\Python36\lib\site-packages\numpy\__init__.py", line 142, in <module>
from . import add_newdocs
File "C:\Python36\lib\site-packages\numpy\add_newdocs.py", line 13, in <module>
from numpy.lib import add_newdoc
File "C:\Python36\lib\site-packages\numpy\lib\__init__.py", line 8, in <module>
from .type_check import *
File "C:\Python36\lib\site-packages\numpy\lib\type_check.py", line 11, in <module>
import numpy.core.numeric as _nx
File "C:\Python36\lib\site-packages\numpy\core\__init__.py", line 33, in <module>
from . import _internal # for freeze programs
File "C:\Python36\lib\site-packages\numpy\core\_internal.py", line 15, in <module>
from .numerictypes import object_
File "C:\Python36\lib\site-packages\numpy\core\numerictypes.py", line 962, in <module>
_register_types()
File "C:\Python36\lib\site-packages\numpy\core\numerictypes.py", line 958, in _register_types
numbers.Integral.register(integer)
AttributeError: module 'numbers' has no attribute 'Integral'
[Finished in 0.2s]
请问怎么解决,跪求