0

I need to install the latest version of scikit-learn, so i use version from GitHub with command

python setup.py install --user

instead of compiled version from http://www.lfd.uci.edu/~gohlke/pythonlibs/#scikit-learn

and have this error

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
    error: Unable to find vcvarsall.bat

Also solution using MinGW doesn't work (this) with exception

ValueError: Unknown MS Compiler version 1900

The same exeption throws when I try to install from VS command promt

Solution with

pip install git+https://github.com/scikit-learn/scikit-learn.git 

also throws the same exception with vcvarsall.bat

Also installng C++ Common Tools doesn't help (this)

Setting

SET VS140COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools

have the same error.

Any ideas?

Community
  • 1
  • 1
Mirza
  • 53
  • 7

1 Answers1

1

The answer is connected with this issue, my fault was that I downloaded C++ Common Tools as a separate package, but you need to reinstall VS and select "Common Tools For Visual Studio 2015"

Community
  • 1
  • 1
Mirza
  • 53
  • 7