Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where are the LightGBM dependencies defined? #6068

Closed
falcon8241 opened this issue Aug 29, 2023 · 3 comments
Closed

Where are the LightGBM dependencies defined? #6068

falcon8241 opened this issue Aug 29, 2023 · 3 comments
Labels

Comments

@falcon8241
Copy link

Pardon me if this is a stupid question:
I am wondering where can I find the dependency requirements for LightGBM Python package, especially for a specific version. E.g. I found a pyproject.toml (https://github.com/microsoft/LightGBM/blob/master/python-package/pyproject.toml) under the master branch. But such file does not exist for a specific version (e.g. if I switch to Tag v3.3.3, this file does not exist).

How do I know the dependency requirement for a specific version?

@jameslamb
Copy link
Collaborator

Thanks for using LightGBM!

Not a stupid question.

As you noted, lightgbm (the Python package for LightGBM) now uses pyproject.toml-based builds (#5759). The first release containing that change was v4.0.0.

For the latest unreleased version of lightgbm here on GitHub, look in https://github.com/microsoft/LightGBM/blob/master/python-package/pyproject.toml.

For prior releases, look in setup.py, e.g. https://github.com/microsoft/LightGBM/blob/v3.3.5/python-package/setup.py#L338-L351

For any Python package, if you're ok with installing it then use pip show to see the dependencies.

pip install 'lightgbm==3.3.5'
pip show lightgbm

shows the following

Name: lightgbm
Version: 3.3.5
Summary: LightGBM Python Package
Home-page: https://github.com/microsoft/LightGBM
Author:
Author-email:
License: The MIT License (Microsoft)
Requires: numpy, scikit-learn, scipy, wheel
Required-by:

@falcon8241
Copy link
Author

Thank you. That helps a lot.

Copy link

This issue has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants