Update docs about python module install

This commit is contained in:
Skipper Seabold
2015-04-08 14:20:52 -05:00
parent c972feb4b5
commit ceb62e9231
2 changed files with 9 additions and 4 deletions

View File

@@ -10,13 +10,17 @@ This should give you xgboost.exe for CLI version and xgboost_wrapper.dll for pyt
Use Python Module
=====
* After you build the dll, you can simply add the path to [../wrapper](../wrapper) to sys.path and import xgboost
* After you build the dll, you can install the Python package from the [../wrapper](../wrapper) folder
```
python setup.py install
```
And import it as usual
```
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
====