python 3.5 scikit-learn developer version error: Unable to find vcvarsall.bat VS 2015

python 3.5 scikit-learn developer version error: Unable to find vcvarsall.bat VS 2015

我需要安装最新版本的 scikit-learn,所以我使用来自 GitHub 的版本和命令

python setup.py install --user

而不是 http://www.lfd.uci.edu/~gohlke/pythonlibs/#scikit-learn

的编译版本

出现这个错误

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

此外,使用 MinGW 的解决方案也不起作用 (this),但出现异常

ValueError: Unknown MS Compiler version 1900

当我尝试从 VS 命令提示安装时抛出相同的异常

的解决方案
pip install git+https://github.com/scikit-learn/scikit-learn.git 

也抛出与 vcvarsall.bat

相同的异常

安装 C++ 通用工具也无济于事 ()

设置

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

同样的错误。

有什么想法吗?

答案是和这个, my fault was that I downloaded C++ Common Tools 连在一起的,是一个单独的包,但是需要重装VS和select "Common Tools For Visual Studio 2015"