-
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 install - Misleading exception raised in Setup.py on GPU install #1121
Comments
@joseortiz3 Thank you for sharing your case. We'll redesign error messages to more informative. |
Fixed in #1034. |
@joseortiz3, @StrikerRUS, @huanzhang12 |
@Untoha2 Hi! I'm not sure, but try to remove spaces from arguments. Also, please attach log file |
@Untoha2 Also, never execute commands from |
@StrikerRUS, Thank you for answering It is also strange but log file |
@StrikerRUS |
@Untoha2 Have you downloaded another version of Boost? Previously you targeted Also, I see you have CMake GUI. What about compiling LightGBM |
@StrikerRUS
And get this
Could you please tell me where I am wrong. I suppose I misunderstand the use of --precompile option or maybe something wrong with paths. Thank you! |
Unfortunately, no. CMake only generated configuration. Now you should compile it with VS.
Now you have compiled
|
@StrikerRUS
I get the error that name I'm sorry, I am not a big pro. |
@Untoha2 Add CMake to your |
@StrikerRUS |
@Untoha2 Glad that you've managed to build LightGBM GPU version! For GPU-version performance, please consider starting reading from this issue #768 and follow some links in it. Then, you may want to get familiar with some benchmarks: Laurae2/ml-perf#8, Laurae2/ml-perf#6, szilard/GBM-perf#11. |
Environment info
Operating System: Windows 10 Pro
CPU: i7-7700K
C++/Python/R version: Python 3 Anaconda 5.0.0
Error Message:
For GPU installs, the error message that says "Please install Visual Studio or MS Build first" is given when Visual Studio is installed but boost is not installed.
Hence, the python line 123 in setup.py that raises this exception should either branch into more cases perhaps checking to see whether or not boost or other packages are installed, should print more information to command line, or should say this error can be caused by not having the required dependencies other than VS/MSBuild, such as boost.
Steps to reproduce
pip install lightgbm --install-option=--gpu
Attached Images
Note: The only thing that made the install work was installing Boost, contrary to the exception raised.
The text was updated successfully, but these errors were encountered: