Running into ImportError with sklearn while doing tutorial

前端 未结 2 1945
渐次进展
渐次进展 2021-01-25 10:50

Hi I\'m trying to follow the machine learning 101 tutorial provided by sklearn, and I keep running into an error.

I have the most the sklearn version downloaded from he

相关标签:
2条回答
  • Copy paste answer from different question: In case you are using the binaries from http://www.lfd.uci.edu/~gohlke/pythonlibs/#scikit-learn. They require numpy-MKL, as indicated on the download page. The official numpy binaries won't work.

    0 讨论(0)
  • 2021-01-25 11:27

    You forgot to compile. Run python setup.py install in the source directory, or python setup.py build_ext --inplace, or grab a binary distribution.

    (Much of scikit-learn is actually implemented in Cython, C or C++. You need C and C++ compilers to install it from source.)

    0 讨论(0)
提交回复
热议问题