我刚从Jupyter笔记本电脑内部收到以下错误消息。
*---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-1-e12bc46e5dd0> in <module>
----> 1 import matplotlib.pylot as plt
ModuleNotFoundError: No module named 'matplotlib.pylot'*
但是仅供参考,我已经安装了matplotlib,并且在终端中输入“ pip3 install matplotlib”时,我收到以下消息:
*Requirement already satisfied: matplotlib in /Users/mattbrown/miniconda3/lib/python3.7/site-packages (3.0.3)*
答案 0 :(得分:0)
您只是拼错了库名,它是pyplot,而不是pylot;)
答案 1 :(得分:0)
我好尴尬!做到了。修正了拼写错误,并进行了以下操作:
import matplotlib.pyplot as plt
答案 2 :(得分:-1)
错别字,使用
import matplotlib.pyplot as plt
代替
import matplotlib.pylot as plt