iPython:无法导入名为sklearn的模块

时间:2014-03-31 04:37:01

标签: python ipython python-import jupyter-notebook

我可以使用python解释器导入sklearn,但是当我尝试在iPython笔记本中执行相同操作时,iPython会抛出ImportError。知道是什么导致了这个问题吗?我需要在iPython中使用一个模块。

enter image description here

enter image description here

我不确定这是否有用,但这是我在我的机器上安装的软件包的子集。

enter image description here

我按照此处有关安装过程的说明操作: http://shanshanchen.com/2013/05/29/install-numpy-scipy-scikit-learn-on-mac-os-x-for-data-miners/

1 个答案:

答案 0 :(得分:3)

问题可以通过笔记本中的以下命令解决。

!pip install scipy
!pip install sklearn