diff --git a/windows/README.md b/windows/README.md index 82efbc54a..6fca36d1c 100644 --- a/windows/README.md +++ b/windows/README.md @@ -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 ==== diff --git a/wrapper/README.md b/wrapper/README.md index 09851b97f..0a170257f 100644 --- a/wrapper/README.md +++ b/wrapper/README.md @@ -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