首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >R 3.5.2中的LightGbm

R 3.5.2中的LightGbm
EN

Stack Overflow用户
提问于 2019-01-31 00:55:04
回答 1查看 1.4K关注 0票数 2

我正试图在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“)

代码语言:javascript
复制
#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“)

代码语言:javascript
复制
#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)
EN

回答 1

Stack Overflow用户

发布于 2020-11-29 02:26:30

{lgbl.dl}最初的创建是为了使安装{lightgbm}更容易,因为{lightgbm}有一个难以使用的安装过程。

该软件包没有跟上LightGBM中的变化,也不再需要在Windows上安装R包,这是这里提到的最初问题。

{lightgbm}现在是卡兰。运行这个R代码来安装它。

代码语言:javascript
复制
install.packages("lightgbm", repos = "https://cloud.r-project.org")
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/54451854

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档