more detailed explaination on windows build

This commit is contained in:
tqchen 2015-03-25 21:08:21 -07:00
parent 08fb205102
commit a84d6c55b3

View File

@ -1,5 +1,23 @@
The solution has been created with Visual Studio Express 2010.
Make sure to compile the Release version, unless you need to debug the code
(and in the latter case modify the path in xgboost.py from release to test).
Note that you have two projects in one solution and they need to be compiled to use the standalone executable from the command line
or the python module respectively.
How to Build Windows Version
=====
* Open the solution file with Visual Studio
* Select x64 and Release in build
* Rebuild all
This should give you xgboost.exe for CLI version and xgboost_wrapper.dll for python
Use Python Module
=====
* After you build the dll, you can simply add the path to [../wrapper](../wrapper) to sys.path and import xgboost
```
sys.path.append('path/to/xgboost/wrapper')
import xgboost as xgb
```
* Alternatively, you can add that path to system enviroment variable ```PYTHONPATH```
- Doing so allows you to import xgboost directly like other python packages
R Package
====
* see [R-package](../R-package) instead