title: How can i solve problem with installing lightgbm gpu on windows 10?
body: <p>I'm trying to install lightgbm gpu on Windows 10 pro x64. My GPU is NVIDIA Geforce GTX 950.
  <br> </p>
  
  <p>I tried to follow this guide first: <a href="https://lightgbm.readthedocs.io/en/latest/GPU-Windows.html" rel="nofollow noreferrer">https://lightgbm.readthedocs.io/en/latest/GPU-Windows.html</a>
  where I used Mingw for compiling. The result was that I could successfully import LightGBM in python, but when I tried to fit the model with parameter <code>device</code>='gpu' I got error:
  <br></p>
  
  <pre><code>LightGBMError: GPU Tree Learner was not enabled in this build.
  Please recompile with CMake option -DUSE_GPU=1
  </code></pre>
  
  <p><br>
  Then i followed that guide:
  <a href="https://github.com/Microsoft/LightGBM/blob/master/docs/Installation-Guide.rst#build-gpu-version" rel="nofollow noreferrer">https://github.com/Microsoft/LightGBM/blob/master/docs/Installation-Guide.rst#build-gpu-version</a>
  and after successful compilation with Visual Studio 2019 I can't install gpu version of lightgbm: I always get exactly the same error as here:
  <a href="https://github.com/Microsoft/LightGBM/issues/1121" rel="nofollow noreferrer">https://github.com/Microsoft/LightGBM/issues/1121</a></p>
  
  <p>It doesnt matter whether I type just
  <br></p>
  
  <pre><code>pip install lightgbm --install-option=--gpu
  </code></pre>
  
  <p><br></p>
  
  <p>or tell the paths to my boost and cuda
  <br> </p>
  
  <pre><code>pip install lightgbm --install-option=--gpu --install-option="--opencl- 
  include-dir=C:/Program Files/NVIDIA GPU Computing 
  Toolkit/CUDA/v10.1/include" --install-option="--opencl-library=C:/Program 
  Files/NVIDIA GPU Computing Toolkit/CUDA/v10.1/lib/x64/OpenCL.lib" -- 
  install-option="--boost-librarydir= C:/local/boost_1_69_0/lib64-msvc-14.1" 
  --install-option="--boost-root= C:/local/boost_1_69_0"
  </code></pre>
  
  <p>I also tried various versions of boost but always get the same error. I would be so thankful if somebody explains to me what is the problem.</p>