Before installing Scikit-learn, you need to install numpy,scipy. However, there are always errors when installing scipy (pip install scipy). After a series of lookups, the reason is that scipy relies on numpy and many other libraries (such as Lapack/blas), but these libraries are not easily accessible under Windows.
After finding, the discovery can be solved by another way, http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy
Download here:
- Numpy-1.11.2+mkl-cp34-cp34m-win32.whl
- Scipy-0.18.1-cp34-cp34m-win32.whl
- Scikit_learn-0.18-cp34-cp34m-win32.whl
(My environment is windows7 32-bit python3.4, you can download according to your needs):
Then install it sequentially, such as: Pip Install NUMPY-1.11.2+MKL-CP34-CP34M-WIN32.WHL
I don't know what the reason is, I have this error when I install it.
You can only change the suffix name to zip and then copy it to the Python installation directory--->lib--->site-packages.
As for the use of will not be wrong, is unknown ...
Installation of Python machine learning Scikit-learn