在R下的Databricks上安装h2o:错误消息:

olqngx59  于 2023-05-26  发布在  其他
关注(0)|答案(2)|浏览(316)

我正在尝试在Databricks上安装h2o(R版本)。
我从以下内容开始:

%sh
apt-get install libcurl4-openssl-dev -y
apt-get update -y
apt-get install -y r-cran-jsonlite

一切都很顺利。然后我试着:

install.packages("h2o", type="source", repos=(c("http://h2o-release.s3.amazonaws.com/h2o/latest_stable_R")))

但返回以下错误:

Warning message:
This project is configured to use R version '4.0.4', but '4.2.2' is currently being used. 
ERROR: dependency ‘jsonlite’ is not available for package ‘h2o’
* removing ‘/local_disk0/.ephemeral_nfs/envs/rEnv-2a5edebe-8ede-4459-8a8b-72c0047b8a01/h2o’
Installing package into ‘/local_disk0/.ephemeral_nfs/envs/rEnv-2a5edebe-8ede-4459-8a8b-72c0047b8a01’
(as ‘lib’ is unspecified)
trying URL 'http://h2o-release.s3.amazonaws.com/h2o/latest_stable_R/src/contrib/h2o_3.40.0.4.tar.gz'
Content type 'application/x-tar' length 177590345 bytes (169.4 MB)
==================================================
downloaded 169.4 MB

Warning in utils::install.packages(pkgs, ...) :
  installation of package ‘h2o’ had non-zero exit status

The downloaded source packages are in
    ‘/tmp/RtmpXqq9V0/downloaded_packages’

排除故障的最佳方法是什么?

9q78igpj

9q78igpj1#

您也可以尝试设置多个存储库,例如

options(repos = c(
 h2o = "http://h2o-release.s3.amazonaws.com/h2o/latest_stable_R",
 CRAN = "https://cloud.r-project.org"
))

install.packages("h2o", type="source")

这样,R可以在自己的存储库中找到h2o包,并从常规CRAN存储库中安装任何依赖项。

roejwanj

roejwanj2#

看起来你需要安装R包jsonlite。

相关问题