5

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 
6
  • Can you tell us your configuration ? And see my answer, this is how I installed it on windows, tell me if it works for you Commented Jun 1, 2017 at 15:57
  • Did you install numpy and scipy? Commented Jun 1, 2017 at 15:59
  • I am using windows 10, Pycharm community version and python 3.6 Commented Jun 1, 2017 at 16:00
  • Yes I installed numpy and scipy Commented Jun 1, 2017 at 16:01
  • You have same configuration than me so I think it should work Commented Jun 1, 2017 at 16:10

2 Answers 2

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

Sign up to request clarification or add additional context in comments.

Comments

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.

1 Comment

I tried that, it didn't work. on doing this it always showed python stopped working

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.