无法在 iPython 中导入 ggplot 模块

Can't import ggplot module in iPython

我正在尝试在 Anaconda iPython 笔记本中使用 ggplot。我 运行 %matplotlib inlinefrom ggplot import *,但我只是得到以下错误:

ImportError                               Traceback (most recent call last)
<ipython-input-3-02aeb6e281ab> in <module>()
----> 1 from ggplot import *
ImportError: No module named ggplot

A​​naconda launcher 中哪里可以导入模块?

您可能需要先通过终端安装 ggplot。假设你已经安装了 pip,运行 终端中的这个:$ pip install ggplot

您应该会看到包下载。然后返回您的笔记本并再次 运行 您的相同命令。