2015-08-23 Building xgboost on Windows for Python
I'm unlucky. The day I decide to deal with xgboost on Windows,
a couple of hours later, I see a commit which does that.
xgboost is
now on pipy
even if the version for Python 3 is not ready yet
(Missing parentheses in call to 'print').
Anyway, if you still want to build xgboost on your own for Python 3.4 (64 bit). This is
what I did:
- Install Microsoft Windows SDK for Windows 7 and .NET Framework 4.
It has to be done to make Visual Studio Express 2010 build for x64. It must be done first if you have
a more recent version of Visual Studio installed on the same machine.
- Install Visual Studio Express (C++).
The link points to an image .iso.
- Install the Java JDK.
Change the verion if there is a more recent one.
- Download xgboost
- Check OpenMD is in
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC (files
vcomp.lib, vcombd.lib, omp.h).
- Open the solution in Windows directory (in xgboost) and update the path to
point to Java JDK and OpenMP, build the version release/x64
(see this commit)
- Go to the python folder and type python setup.py bdist_wheel to build the file .whl
2016/01/08 more on
Build xgboost for Python 3.4
and Build xgboost for Python 3.5