Skip to main content

LightGBM Python Package

Project description

PyPI version

Installation

Preparation

setuptools is needed.

For Mac OS X users, gcc with OpenMP support must be installed first. Refer to wiki for installing gcc with OpenMP support.

Note: 32-bit python is not supported. Please install 64-bit version.

Install from pip

Install wheel via pip install wheel first. For windows user, VC runtime is needed if Visual Studio(2015 or 2017) is not installed.

Install from wheel package:

pip install lightgbm

Install from source package:

pip install --no-binary :all: lightgbm

Note: Installation from source package require installing cmake first, and Visual Studio (or MS Build) is needed in Windows.

For the MinGW build in Windows or GPU support, please install the latest version from GitHub.

Install from GitHub

Installation from GitHub require installing cmake first, and Visual Studio (or MS Build) is needed in Windows.

git clone --recursive https://github.com/Microsoft/LightGBM
cd LightGBM/python-package
python setup.py install

sudo (or administrator rights in Windows) may is needed to perform python setup.py install.

Use python setup.py install --mingw to use MinGW in Windows.

Use python setup.py install --gpu to enable GPU support. Boost and OpenCL are needed: details for installation can be found in gpu-support.

Examples

Refer to the walk through examples in python-guide folder

Troubleshooting

Refer to FAQ

Developments

The code style of python package follows pep8. If you would like to make a contribution and not familiar with pep-8, please check the pep8 style guide first. Otherwise, the check won’t pass. You should be careful about:

  • E1 Indentation (check pep8 link above)

  • E202 whitespace before and after brackets

  • E225 missing whitespace around operator

  • E226 missing whitespace around arithmetic operator

  • E261 at least two spaces before inline comment

  • E301 expected 1 blank line in front of and at the end of a method

  • E302 expected 2 blank lines in front of and at the end of a function or a class

E501 can be ignored (line too long).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lightgbm-2.0.3.tar.gz (204.1 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

lightgbm-2.0.3-py2.py3-none-win_amd64.whl (897.0 kB view details)

Uploaded Python 2Python 3Windows x86-64

lightgbm-2.0.3-py2.py3-none-manylinux1_x86_64.whl (1.3 MB view details)

Uploaded Python 2Python 3

lightgbm-2.0.3-py2.py3-none-macosx_10_9_x86_64.macosx_10_10_x86_64.macosx_10_11_x86_64.macosx_10_12_x86_64.whl (1.2 MB view details)

Uploaded Python 2Python 3macOS 10.10+ x86-64macOS 10.11+ x86-64macOS 10.12+ x86-64macOS 10.9+ x86-64

File details

Details for the file lightgbm-2.0.3.tar.gz.

File metadata

  • Download URL: lightgbm-2.0.3.tar.gz
  • Upload date:
  • Size: 204.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for lightgbm-2.0.3.tar.gz
Algorithm Hash digest
SHA256 4407e7df6b21fdbed8a0731a61429ff71da7a0cc7f72134387860d45c895869f
MD5 42724355df8f8552e253d42ee70c0e26
BLAKE2b-256 c0fba89d7c93affe6d834efb86ea72f52e0027d7bed28860f3233c4e39881430

See more details on using hashes here.

File details

Details for the file lightgbm-2.0.3-py2.py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for lightgbm-2.0.3-py2.py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 b146c9d569e7fa45be3e0768e00036feab76657017d7a394cfa081b923509f66
MD5 9548614cf91bd5eb54f62efa05179f0c
BLAKE2b-256 6d557fe39342310e2c60bd1da4672746b1fee331cd103108f398b175e1a2d58f

See more details on using hashes here.

File details

Details for the file lightgbm-2.0.3-py2.py3-none-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for lightgbm-2.0.3-py2.py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 cbe0ad2fcfa115bdf236294744af43f91c20f99d524af93ef1b449735693710d
MD5 e4dcd7bb50647fd13c39de5264286e7a
BLAKE2b-256 1f0f36af24776a1fb95957f1b3cd98112726c419d08e1eca00d07c31d3558d8a

See more details on using hashes here.

File details

Details for the file lightgbm-2.0.3-py2.py3-none-macosx_10_9_x86_64.macosx_10_10_x86_64.macosx_10_11_x86_64.macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for lightgbm-2.0.3-py2.py3-none-macosx_10_9_x86_64.macosx_10_10_x86_64.macosx_10_11_x86_64.macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 9bc00e95b0abc03ee681fb6564808801f790dac5e4b4489f003b6583ad07fb85
MD5 3cd4601db52226cbd66fdcbbf8dce3f0
BLAKE2b-256 89d1f1046d37dfe3006c44751394f572724b8cb952b6de1a90c0f2876ef4ba07

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page