-
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
[python-package] [gpu] Unable to Install LightGBM GPU Python Package on Windows #6325
Comments
Thanks for using LightGBM and for the thorough write-up! As explained in the documentation, you cannot simple
To build the GPU Python package from GitHub sources, do the following: git clone --recursive https://github.com/microsoft/LightGBM
cd ./LightGBM
sh build-python.sh install --gpu But only do that if you need an unreleased version of pip install lightgbm For more details, see https://stackoverflow.com/a/77078844/3986677 |
I tried to run After that I tried to use simplified version of command and just run the UPD UPD 2 |
That error has many possible causes. I strongly suspect that there were more logs than just that printed, which might help us to help you identify the root cause. Can you please run this again: pip install \
--force-reinstall \
--no-binary lightgbm \
--config-settings=cmake.define.USE_CUDA=ON \
lightgbm And share the full output that's printed?
See https://lightgbm.readthedocs.io/en/latest/Installation-Guide.html#build-cuda-version for more information. In case you're new to GitHub... please see https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax for some tips on how to format text here in a way that makes the difference between code, output from code, and your own words clearer. |
More information: #6281 (comment) |
Sure, |
@jameslamb Ok, now it's real interesting, because I tried to use docker image from here and got the error too! I create the preproduction repo and describe the steps I did. Hope this stuff helps you understand why the problem appears. |
Thank you. I see compilation errors like this:
So just to confirm... that output came from running precisely this command, with no other customizations? pip install \
--force-reinstall \
--no-binary lightgbm \
--config-settings=cmake.define.USE_CUDA=ON \
lightgbm
The error message you're reporting there is this:
And you did not compile the library with cmake -DUSE_GPU=1 -DOpenCL_LIBRARY=/usr/local/cuda/lib64/libOpenCL.so -DOpenCL_INCLUDE_DIR=/usr/local/cuda/include/ .. If you want to use |
Yes, no customizations.
Oh, I see now. |
@jameslamb , Finally I compiled the module for CUDA using, but now I got error
I don't google any information about this error.. |
What specific command(s) did you run or other actions did you take to fix the compilation errors? |
I did it for Docker, not Windows.
|
Ok. Well it looks like you've opened another issue for the new error message you're reporting (#6329), and the documentation here does explicitly say that Windows support for the CUDA interface is not currently available:
ref: https://lightgbm.readthedocs.io/en/latest/Installation-Guide.html#build-cuda-version So as it seems you're not interested in continuing to help with identifying the root cause of these issues on Windows, we'll close this. |
Issue Description:
I encountered difficulties while attempting to install the LightGBM GPU (master branch) Python package on Windows. Despite successfully compiling the GPU version and obtaining the necessary .dll and .exe files in the Release folder, I faced several obstacles during the installation process using the command
pip install ./python-package
.Steps to Reproduce:
Compile LightGBM GPU (master branch) version on Windows.
Check Release folder for containing the .dll and .exe files.
Execute the command
pip install ./python-package
from root folder (LightGBM)Expected Behavior:
The Python package installation process should proceed smoothly without any errors.
Actual Behavior:
Encountered errors during the installation process:
Initially failed to locate the LICENSE file within the 'python-package' folder. Manually creating the LICENSE file resolved this issue.
Subsequently, encountered an error indicating the absence of the 'CMakeLists.txt' file.
Additional Information:
OS: Windows
Compiler: cmake
Python version: 3.11.5
LightGBM version: folder cloned from master branch usning git clone --recursive https://github.com/microsoft/LightGBM
Proposed Solution:
Investigate and resolve the issues preventing successful installation of the LightGBM GPU Python package on Windows. This may involve ensuring all required files are present and addressing any potential compatibility issues.
Thank you for your attention to this matter. If further information or logs are required, please let me know.
The text was updated successfully, but these errors were encountered: