gpt4 book ai didi

r - LightGBM安装报错r,无法排查

转载 作者:行者123 更新时间:2023-12-05 07:39:13 26 4
gpt4 key购买 nike

这是我遇到的错误。我还在他们的网站上尝试了所有其他安装选项,但没有成功。我有点不知道该如何解决这个问题。任何帮助将不胜感激。

 > install_github("Microsoft/LightGBM", subdir = "R-package")
Downloading GitHub repo Microsoft/LightGBM@master
from URL https://api.github.com/repos/Microsoft/LightGBM/zipball/master
Installing lightgbm
Installing 1 package: data.table
Installing package into ‘C:/Users/XXXXXXXXXX/Documents/R/win-library/3.4’
(as ‘lib’ is unspecified)
trying URL
'https://cran.rstudio.com/bin/windows/contrib/3.4/data.table_1.10.4-3.zip'
Content type 'application/zip' length 1577027 bytes (1.5 MB)
downloaded 1.5 MB

package ‘data.table’ successfully unpacked and MD5 sums checked
Warning: cannot remove prior installation of package ‘data.table’

The downloaded binary packages are in

C:\Users\XXXXXXXXXXXXX\AppData\Local\Temp\Rtmpa409YJ\downloaded_packages
"C:/PROGRA~1/R/R-34~1.1/bin/x64/R" --no-site-file --no-environ --no-save --
no-restore --quiet CMD INSTALL "C:/Users/XXXXXX \
XXXXX/AppData/Local/Temp/Rtmpa409YJ/devtools15b8405627ba/Microsoft-
LightGBM-04d4811/R-package" --library="C:/Users/XXXXXXXXX \
XXXXXXXXX/Documents/R/win-library/3.4" --install-tests

ERROR: dependency 'data.table' is not available for package 'lightgbm'
* removing 'C:/Users/XXXXXXXXXX/Documents/R/win-library/3.4/lightgbm'
Installation failed: Command failed (1)
Warning message:
GitHub repo contains submodules, may not function as expected!


R.Version()
$platform
[1] "x86_64-w64-mingw32"

$arch
[1] "x86_64"

$os
[1] "mingw32"

$system
[1] "x86_64, mingw32"

$status
[1] ""

$major
[1] "3"

$minor
[1] "4.1"

$year
[1] "2017"

$month
[1] "06"

$day
[1] "30"

$`svn rev`
[1] "72865"

$language
[1] "R"

$version.string
[1] "R version 3.4.1 (2017-06-30)"

$nickname
[1] "Single Candle"

Stackoverlfow 认为这篇文章有很多代码,所以我需要向其中添加更多文本,所以我将在这里闲聊,这样我就可以达到字符数限制。如果您正在阅读本文,我感到非常抱歉,因为我在浪费您的时间以及我写这篇文章的时间,但系统就是系统,所以我想我只能继续前进。有点像多莉在寻找尼莫。继续游泳,继续游泳。

最佳答案

您可以通过进入 R studio 并安装 data.table 包来解决这个问题。我遇到了同样的问题,这对我有用

关于r - LightGBM安装报错r,无法排查,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47192633/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com