Brief introduction
Under Windows compile Sklearn source code, the main note two points:
- Building a compilation environment
- Compilation order
Building a compilation environment
If the environment is not well built, the most common error is "error:unable to find Vcvarsall.bat"
In Python 3.5, for example, when VisualStudio is installed by default, Python tools is not typically selected, so reinstall VisualStudio, select Custom, and tick the following options.
Compilation order
- Compiling Sklearn source code
Python setup.py build_ext-i |
- Install Sklearn Source code
Be sure to use the Build_ext command, if you start with install, that's okay, use Build_ext again, and finally use install.
Reference:
- Error:unable to find Vcvarsall.bat
- Python 3.5 Fix Unable to find Vcvarsall.bat
- Installing Scikit-image
Sklearn Source installation under Windows