This commit is contained in:
Guolin Ke 2017-07-22 17:44:21 +08:00
Родитель 6828461d03
Коммит 72905d798a
2 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -33,6 +33,7 @@ Install LightGBM R-package with the following command:
```sh
git clone --recursive https://github.com/Microsoft/LightGBM
cd LightGBM/R-package
# export CXX=g++-7 CC=gcc-7 # for OSX
R CMD INSTALL --build . --no-multiarch
```
@ -42,6 +43,7 @@ Or build a self-contained R package which can be installed afterwards:
git clone --recursive https://github.com/Microsoft/LightGBM
cd LightGBM/R-package
Rscript build_package.R
# export CXX=g++-7 CC=gcc-7 # for OSX
R CMD INSTALL lightgbm_2.0.4.tar.gz --no-multiarch
```

Просмотреть файл

@ -35,6 +35,8 @@ Note: Installation from source package require installing `cmake <https://cmake.
For Windows user, Visual Studio (or `MS Build <https://www.visualstudio.com/downloads/#build-tools-for-visual-studio-2017>`_) is needed, and `cmake <https://cmake.org/>`_ must be version 3.8 or higher.
For OSX user, you need to run ```export CXX=g++-7 CC=gcc-7``` before running ```pip install ... ```.
Install GPU version:
``pip install lightgbm --install-option=--gpu``
@ -56,6 +58,7 @@ For Windows user, Visual Studio (or `MS Build <https://www.visualstudio.com/down
git clone --recursive https://github.com/Microsoft/LightGBM
cd LightGBM/python-package
# export CXX=g++-7 CC=gcc-7 # for OSX
python setup.py install
``sudo`` (or administrator rights in Windows) may is needed to perform ``python setup.py install``.