Monday, 1 May 2017

Compile scikit-learn with a more recevent version of Visual Studio

Source: stackoverflow.com --- Sunday, April 30, 2017
I have Windows and CPython version 3.6.1 I also have installed Visual Studio 2017, including the c++ compiler I tried to install scikit-learn by issuing the following command pip install sklearn But it failed with the following error: 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 error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://ift.tt/21hdp4m ---------------------------------------- Command ""c:\program files\python36\python.exe" -u -c "import setuptools, tokenize;__file__='C:\\Users\\raffa\\AppData\\Local\\Temp\\pip-build-gmj2ata7\\scikit-learn\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\raffa\AppData\Local\Temp\pip-leshnah_-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\raffa\AppData\Local\Temp\pip-build-gmj2ata7\scikit-learn\ It says it needs Microsoft Visual C++ 14.0, which is part of Visual Studio 2015. But I have the 2017 version and I don't want to install another version just for this. Is there a way to make sklearn "recognize" the more re ...



from Windows http://ift.tt/2pl0HId

No comments:

Post a Comment