README.rst 1.09 KB
Newer Older
Guolin Ke's avatar
Guolin Ke committed
1
2
3
4
5
6
7
8
LightGBM Python Package
=======================

Installation
------------

1. Following `Installation Guide <https://github.com/Microsoft/LightGBM/wiki/Installation-Guide>`__ to build first.
   For the windows user, please change the build config to ``DLL``.
Guolin Ke's avatar
Guolin Ke committed
9
2. Install with ``cd python-package; python setup.py install`` 
Guolin Ke's avatar
Guolin Ke committed
10
11
12
13
14
15
16
17
18

Note: Make sure you have `setuptools <https://pypi.python.org/pypi/setuptools>`__


Examples
--------

-  Refer also to the walk through examples in `python-guide
   folder <https://github.com/Microsoft/LightGBM/tree/master/examples/python-guide>`__
wxchan's avatar
wxchan committed
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33


Troubleshooting
--------

- **Trouble 1**: I see error messages like this when install from github using `python setup.py install`.

    error: Error: setup script specifies an absolute path:

    /Users/Microsoft/LightGBM/python-package/lightgbm/../../lib_lightgbm.so

    setup() arguments must *always* be /-separated paths relative to the
    setup.py directory, *never* absolute paths.

- **Solution 1**: please check `here <http://stackoverflow.com/questions/18085571/pip-install-error-setup-script-specifies-an-absolute-path>`__.