首页 新闻 会员 周边 捐助

python 中matplotlib.pyplot问题

0
悬赏园豆:10 [已解决问题] 解决于 2019-03-02 20:30

昨天晚上我的pyplot函数还能用,今天就不行了。在终端显示,matplotlib还能正常用,但pyplot用不了。

Python 3.7.2 (tags/v3.7.2:9a3ffc0492, Dec 23 2018, 22:20:52) [MSC v.1916 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import matplotlib
>>> import matplotlib.pyplot as plt
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\王江伟\AppData\Roaming\Python\Python37\site-packages\matplotlib\pyplot.py", line 40, in <module>
from matplotlib.figure import Figure, figaspect
File "C:\Users\王江伟\AppData\Roaming\Python\Python37\site-packages\matplotlib\figure.py", line 37, in <module>
from matplotlib.axes import Axes, SubplotBase, subplot_class_factory
File "C:\Users\王江伟\AppData\Roaming\Python\Python37\site-packages\matplotlib\axes\__init__.py", line 1, in <module>
from ._subplots import *
File "C:\Users\王江伟\AppData\Roaming\Python\Python37\site-packages\matplotlib\axes\_subplots.py", line 6, in <module>
from matplotlib.axes._axes import Axes
File "C:\Users\王江伟\AppData\Roaming\Python\Python37\site-packages\matplotlib\axes\_axes.py", line 36, in <module>
import matplotlib.tri as mtri
File "C:\Users\王江伟\AppData\Roaming\Python\Python37\site-packages\matplotlib\tri\__init__.py", line 5, in <module>
from .triangulation import *
File "C:\Users\王江伟\AppData\Roaming\Python\Python37\site-packages\matplotlib\tri\triangulation.py", line 4, in <module>
import matplotlib._qhull as _qhull
ModuleNotFoundError: No module named 'matplotlib._qhull'
>>>

请问这是怎么回事?该怎么解决呢?

Ts归零者的主页 Ts归零者 | 初学一级 | 园豆:185
提问于:2019-02-27 14:52
< >
分享
最佳答案
0

未找到指定模块,建议查看调用的模块名称是否输入错误,可以查看matplotlib的相关文档

收获园豆:10
Afeng616 | 菜鸟二级 |园豆:216 | 2019-03-01 23:32

谢谢,我把matplotlib安装包卸了,然后又重新安装了一个。

Ts归零者 | 园豆:185 (初学一级) | 2019-03-02 20:29
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册