【发布时间】:2016-03-31 20:46:09
【问题描述】:
我刚刚尝试集成到 Jupyter,并且我已经使用 Anaconda 很长时间了。
尝试在 IPython Notebook 中导入 matplotlib 时,
import matplotlib.pyplot as plt
%matplotlib inline
我收到此错误:
ImportError Traceback (most recent call last)
<ipython-input-2-385145dcc870> in <module>()
----> 1 import matplotlib.pyplot as plt
2 get_ipython().magic(u'matplotlib inline')
ImportError: No module named matplotlib.pyplot
【问题讨论】:
-
rm -rf ~/Library/Enthought/ -
因为移除 Canopy
Application不会移除主目录中的文件夹。 support.enthought.com/entries/… -
我当时删除了它。现在再次尝试 matplotlib 时,我得到了这个——在编辑中。
标签: python matplotlib ipython jupyter enthought