-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Bump min python version to 3.7 #5974
Conversation
The dependency scikit-build-core>=0.4.4 requires python >=3.7. Attempting to install with `pip install lightgbm` will fail in python 3.6 env since it will attempt to install lighgbm=4.0.0 but then fail to find a package matching scikit-build-core>=0.4.4 (since none are compatible with python 3.6)
Thanks for your interest in LightGBM, and for taking the time to propose a change! But we are not going to accept this proposal. It's an intentional choice to not yet raise the Python floor in this project's Python package above 3.6. See these discussions for some examples:
This isn't exactly true. More specifically, installing lightgbm from source will fail in a Python 3.6 environment, because However... it is absolutely still possible to use We test that on every commit, see here: LightGBM/.github/workflows/python_package.yml Lines 89 to 104 in d73c6b5
For a simpler example showing what I'm describing, try the following: docker run \
--rm \
python:3.6 \
pip install 'lightgbm==4.0.0' You'll see that PyPI serves back a wheel, that is successfully installed
|
Thanks for the quick response and confirming 3.6 is the intended min version. For completeness - We are also using an old version of pip which is causing the wheel for manylinux_2_8_x86_64 to not be used. A reproducible example on x86_64 is
|
I see, thanks for that detail. I'm sorry about that, but our options are limited by the upstream changes that have happened in in To try to help inform your decision, I just worked through the releases of docker run \
--rm \
python:3.6 \
sh -c " \
pip install 'pip==20.3' \
&& pip install 'lightgbm==4.0' \
&& python -c 'import lightgbm; print(dir(lightgbm))' \
" If you're able to upgrade just a bit further to I'm sorry again for the inconvenience. There's significant discussion in #5061 and the things linked from it describing these topics in greater detail, if you'd like to better understand why |
This pull request 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. |
The dependency scikit-build-core>=0.4.4 requires python >=3.7.
Attempting to install with
pip install lightgbm
will fail in python 3.6 env since it will attempt to install lighgbm=4.0.0 but then fail to find a package matching scikit-build-core>=0.4.4 (since none are compatible with python 3.6)