Running into ImportError with sklearn while doing tutorial

女生的网名这么多〃 提交于 2019-12-02 06:12:42

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.)

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.

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