Vikas Meena
Vikas Meena

Reputation: 342

Failed to install package 'sklearn'

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

Upvotes: 5

Views: 2404

Answers (2)

codingfish
codingfish

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

JFugger_jr
JFugger_jr

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

Related Questions