Failed to install package "sklearn" (Pycharm)

After a whole day of struggling, here I finally give up and ask this question. I know it might be totally inappropriate to ask this question, but I can't install sklearn on pycharm and can't even install it using pip. I don't know what is wrong, any help would be much appreciated. Thank you in advance.

Configuration: Windows 10, Pycharm community version, Python 3.6

Here is the error screen:

error screen (Failed to install package 'sklearn')

Error messsage:

running build_clib
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying 
from distutils
customize MSVCCompiler
Missing compiler_cxx fix for MSVCCompiler
customize MSVCCompiler using build_clib
building 'libsvm-skl' library
compiling C sources
creating build\temp.win32-3.6
creating build\temp.win32-3.6\sklearn
creating build\temp.win32-3.6\sklearn\svm
creating build\temp.win32-3.6\sklearn\svm\src
creating build\temp.win32-3.6\sklearn\svm\src\libsvm

      

+3


source to share


2 answers


You can download the wheel that matches your configuration here and install it with :

pip install some-package.whl



If you have a problem installing the wheel, read this answer

Hope it works for you.

+1


source


The easiest way to install is using the command line. Open Command Prompt, change directory to Pycharm directory and install using pip.



You can also try reinstalling numpy.

0


source







All Articles