Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPython: cannot import module named sklearn

I am able to import sklearn using the python interpreter, but when I try to do the same in an iPython notebook, iPython throws an ImportError. Any idea what is causing this issue? I need to use a module in iPython.

enter image description here

enter image description here

I'm not sure if this will be helpful, but here is a subset of the packages that I have installed on my machine.

enter image description here

I followed the instructions here regarding the installation process: http://shanshanchen.com/2013/05/29/install-numpy-scipy-scikit-learn-on-mac-os-x-for-data-miners/

like image 632
bobbyjoe93 Avatar asked Mar 31 '14 04:03

bobbyjoe93


1 Answers

The problem could be solved by the below commands in the notebook.

!pip install scipy
!pip install sklearn
like image 51
amin Avatar answered Sep 28 '22 22:09

amin