Error importing sklearn

给你一囗甜甜゛ 提交于 2019-12-01 15:01:24

The following steps solved my problem :

  1. Uninstalling numpy, sklearn and scipy.
  2. Downloading numpy+mkl and scipy from here.
  3. Firstly installing numpy+mkl and then scipy.
  4. Installing sklearn from pip.
pallavi Kulkarni

Various things need to be checked:

  1. Check numpy, scipy installation versions.
  2. If they are correct then try to import numpy and scipy.
  3. If they getting imported correctly, then clear your temp(c:/users/username/Appdata/local/temp)folder. Restart the machine and try again.
  4. Still if doesn't work, then uninstall scipy, numpy , sklearn and reinstall the proper wheel files
ambakick

Download and install numpy+mkl file.

Currently you might have installed only the numpy file.

  1. Go to: https://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy

  2. Download the corresponding wheel file in which is suitable for your python installation

  3. pip install "/path_to_thefile/numpy-1.14.6+mkl-cp36-cp36m-win_amd64.whl"

This should help you

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!