4

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:

screen of the error (Failed to install package 'sklearn')

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
bad_coder
  • 11,289
  • 20
  • 44
  • 72
Vikas Meena
  • 322
  • 3
  • 20

2 Answers2

1

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

bad_coder
  • 11,289
  • 20
  • 44
  • 72
codingfish
  • 400
  • 7
  • 21
0

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.

JFugger_jr
  • 313
  • 1
  • 4
  • 13