module not found on ipython notebook

前端 未结 2 1421
醉酒成梦
醉酒成梦 2021-02-13 02:58

I have an ipython notebook which starts with

import sklearn

When I run it, I get :

ImportError: No module named sklearn
         


        
2条回答
  •  有刺的猬
    2021-02-13 03:24

    Is it possible that /usr/bin/python is actually a symlink?

    The better solution is that you should be running your ipython notebook from a virtualenv that contains all the modules that you need.

提交回复
热议问题