如何在R中安装程序包LIDR解决错误?

发布于 2025-01-31 08:01:57 字数 1142 浏览 4 评论 0原文

我正在使用Amazon Sagemaker笔记本实例。而且我正在尝试将LIDR软件包安装到r笔记本中,但是我有以下错误。 我怎么能。解决吗?

代码;

install.packages("lidR")

错误;

installing the dependencies ‘units’, ‘lwgeom’, ‘raster’, ‘sf’, ‘stars’, ‘terra’
    
    
    Warning message in install.packages("lidR"):
    “installation of package ‘units’ had non-zero exit status”
    Warning message in install.packages("lidR"):
    “installation of package ‘terra’ had non-zero exit status”
    Warning message in install.packages("lidR"):
    “installation of package ‘raster’ had non-zero exit status”
    Warning message in install.packages("lidR"):
    “installation of package ‘sf’ had non-zero exit status”
    Warning message in install.packages("lidR"):
    “installation of package ‘lwgeom’ had non-zero exit status”
    Warning message in install.packages("lidR"):
    “installation of package ‘stars’ had non-zero exit status”
    Warning message in install.packages("lidR"):
    “installation of package ‘lidR’ had non-zero exit status”
    Updating HTML index of packages in '.Library'
    
    Making 'packages.html' ...
     done

I am using amazon sagemaker notebook instance. And i am trying to install lidR package into R notebook but i got following errors.
How can i. Solve it?

Code;

install.packages("lidR")

Error;

installing the dependencies ‘units’, ‘lwgeom’, ‘raster’, ‘sf’, ‘stars’, ‘terra’
    
    
    Warning message in install.packages("lidR"):
    “installation of package ‘units’ had non-zero exit status”
    Warning message in install.packages("lidR"):
    “installation of package ‘terra’ had non-zero exit status”
    Warning message in install.packages("lidR"):
    “installation of package ‘raster’ had non-zero exit status”
    Warning message in install.packages("lidR"):
    “installation of package ‘sf’ had non-zero exit status”
    Warning message in install.packages("lidR"):
    “installation of package ‘lwgeom’ had non-zero exit status”
    Warning message in install.packages("lidR"):
    “installation of package ‘stars’ had non-zero exit status”
    Warning message in install.packages("lidR"):
    “installation of package ‘lidR’ had non-zero exit status”
    Updating HTML index of packages in '.Library'
    
    Making 'packages.html' ...
     done

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

猫瑾少女 2025-02-07 08:01:57

使用conda在jupyterlab实例上安装软件包

打开一个终端并运行以下命令:

conda init bash
source ~/.bashrc
conda activate R
conda install -c conda-forge r-lidr

之后您应该在笔记本上库(lidr)(如果需要时重新启动R内核)

Use conda to install the package

Open a terminal on your JupyterLab instance and run the following commands:

conda init bash
source ~/.bashrc
conda activate R
conda install -c conda-forge r-lidr

You should be able to library(lidR) on your notebook after that (restart the R kernel if needed)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文