我正试图在r 3.5.2中安装Lightgbm库。经过数百万次的尝试,我可以这样做。如果有人知道怎么安装它呢?
我已经尝试过这些方法来安装lightgbm,但是总是会出现这种类型的错误。
1.
在I.P(.):(从警告中转换)软件包‘C:/Users/MUHAMM~1/AppData/Local/Temp/Rtmp4EX73g/file7d81a401a17/lightgbm_2.2.3.tar.gz’的安装具有非零退出状态,此外:警告消息: 1:在untar2中(tarfile,file,list,exdir):跳过pax全局扩展标头2:在untar2中(tarfile,file,list,exdir):跳过pax全局扩展头
2.
Lgb.dl中的错误(commit=“主”,编译器= "vs",repo = "https://github.com/Microsoft/LightGBM",:未能找到函数"lgb.dl“)
#1
install.packages('devtools')
packageurl <- "http://cran.r-project.org/src/contrib/Archive/lightgbm/lightgbm_3.5.2.tar.gz"
install.packages(packageurl, contriburl=NULL, type="source")
#2
download.file("https://github.com/hadley/lightgbm/archive/master.zip", destfile = "lightgbm.zip")
#3
lgb.dl(commit = "master",libdll = "C:\\xgboost\\LightGBM\\windows\\x64\\DLL\\lib_lightgbm.dll",
# repo = "https://github.com/Microsoft/LightGBM",cores = 2)
#4
lgb.dl(commit = "master", libdll = "C:\\LightGBM\\windows\\x64\\DLL\\lib_lightgbm.dll", # YOUR PRECOMPILED DLL
#repo = "https://github.com/Microsoft/LightGBM")Lgb.dl中的错误(commit=“主”,编译器= "vs",repo = "https://github.com/Microsoft/LightGBM",:未能找到函数"lgb.dl“)
#5
lgb.dl(commit = "master", compiler = "vs", # Remove this for MinGW + GPU installation repo = "https://github.com/Microsoft/LightGBM", use_gpu = TRUE)
#6
lgb.dl(commit = "master", compiler = "vs", # Remove this for MinGW + GPU installation repo = "https://github.com/Microsoft/LightGBM",use_gpu = TRUE)发布于 2020-11-29 02:26:30
{lgbl.dl}最初的创建是为了使安装{lightgbm}更容易,因为{lightgbm}有一个难以使用的安装过程。
该软件包没有跟上LightGBM中的变化,也不再需要在Windows上安装R包,这是这里提到的最初问题。
{lightgbm}现在是卡兰。运行这个R代码来安装它。
install.packages("lightgbm", repos = "https://cloud.r-project.org")https://stackoverflow.com/questions/54451854
复制相似问题