我尝试过不同的方法来安装lightgbm软件包,但是我做不到。我在github储存库尝试了所有的方法,但它们都不起作用。我运行Windows 10和R3.5 (64位)。有人也有类似的问题。所以我尝试了他的解决方案:
-->
devtools::install_github("Laurae2/lgbdl", force = TRUE)
library(lgbdl)
lgb.dl(commit = "master",
compiler = "vs",
repo = "https://github.com/Microsoft/LightGBM")
*** arch - i386
installing via 'install.libs.R' to C:/Users/X1/Documents/R/win-
library/3.5/lightgbm
Error in eval(ei, envir) : Cannot find lib_lightgbm.dll
* removing 'C:/Users/XXX/Documents/R/win-library/3.5/lightgbm'
In R CMD INSTALL
installation of package
�C:/Users/XXX/AppData/Local/Temp/RtmpczNLaN/LightGBM/R-package� had non-
zero exit status[1] FALSE知道怎么解决这个问题吗?
发布于 2018-10-21 15:54:02
对我有用,希望能帮上忙。
发布于 2019-06-28 06:05:09
对于一些可怜的灵魂,挣扎在这和如果上面提到的修复不起作用。我要做的是让它发挥作用:
- Rtools (point to the bin folder in the install directory of rtools)
- Rtools mingw\_64 (point to the mingw\_64 folder in the rtools install directory)
- Base R (point to the bin folder in your base R install directory, i.e. where you install R version whatever)
- CMake (point to the bin folder in your cmake install directory)
- Visual Studio (allows you to build with VS Build Tools, otherwise will fallback to RTools or any MinGW64 available as stated on the github page)
- Git
- data.tools
- magrittr
- R6
- jsonlite
发布于 2018-11-07 12:10:53
在“百万”尝试之后,我成功地安装了它。我必须确保只安装了一个R版本- 64位,并且所有其他步骤都是用预期的环境变量设置完成的。
https://stackoverflow.com/questions/50685755
复制相似问题