Install sklearn and sklearn
Sklearn is short for scikit-learn. Many python toolkit require the library installation sequence: wheel numpy scipy sklearn because the library has been poorly installed, there is no motivation for further study of machine learning., and kuku reported the error cause: pip install in Windows may not support installation of libraries such as scipy. Therefore, you need to manually install the installation process: # Because my computer python2 and python3 are in the same place, and I want to install them on python3, therefore, all the following three items have a first pip3 install wheel. On the cmd interface, enter python3 #. In fact, the version information has been generated at this time. You only need to know that it is 3. for Version X, win32, or 64, >>> import pip >>> print (pip. pepw.tags. get_supported () displays the current version information # Enter www.lfd.uci.edu/4247egohlke/pyt for 36, 32 On the download page of honlibs/python library, find numpy + mkl and scipy to download the corresponding version. Even though numpy has been installed on your computer, you still need to download it again (mainly mkl, enter the whl file interface, Enter cmd in the ftp address bar, and then enter the full name of pip3 install + whl file to install whl. Install numpy first and then scipy
Enter python3 again, and the scipy reference is successful.
Sklearn is relatively simple to install. pip3 install sklearn directly.
The installation is successful. You can use it!