Running into ImportError with sklearn while doing tutorial

前端 未结 2 1946
渐次进展
渐次进展 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条回答
  •  梦毁少年i
    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.)

提交回复
热议问题