ModuleNotFoundError: No module named 'sklearn'

前端 未结 10 1356
天涯浪人
天涯浪人 2020-12-29 17:37

I want to import sklearn but there is no module apparently:

ModuleNotFoundError: No module named \'sklearn\'

I am using Anaconda and

10条回答
  •  南方客
    南方客 (楼主)
    2020-12-29 18:06

    This happened to me, I tried all the possible solutions with no luck!

    Finaly I realized that the problem was with Jupyter notebook environment, not with sklearn!

    I solved the problem by re-installing Jupyter at the same environment as sklearn

    the command is: conda install -c anaconda ipython. Done...

提交回复
热议问题