Reputation: 342
After a whole day struggle, here I finally give up and ask this question. I know this may not be totally appropriate to ask this question but I'm not able to install sklearn on PyCharm and even can't install it using pip.
Config: Windows 10, Pycharm community edition, Python 3.6
Here is a screen of the error:
The 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
Upvotes: 5
Views: 2404
Reputation: 400
You can download the wheel corresponding to your configuration here and install it with:
pip install some-package.whl
If you have problem to install the wheel read this answer
Upvotes: 1
Reputation: 313
The easiest other way to install, is to use the command line. Open the command line, change the directory to your Pycharm directory and install it using pip.
You can also try reinstalling numpy.
Upvotes: 0