Update docs about python module install
This commit is contained in:
parent
c972feb4b5
commit
ceb62e9231
@ -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
|
||||
====
|
||||
|
||||
@ -5,6 +5,7 @@ This folder provides wrapper of xgboost to other languages
|
||||
Python
|
||||
=====
|
||||
* To make the python module, type ```make``` in the root directory of project
|
||||
* Install with `python setup.py install` from this directory.
|
||||
* Refer also to the walk through example in [demo folder](../demo/guide-python)
|
||||
|
||||
R
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user