gpt4 book ai didi

R:无法在 PopOS 21.04 中安装天才包

转载 作者:行者123 更新时间:2023-12-04 19:06:11 24 4
gpt4 key购买 nike

刚从 Windows 跳到 PopOS 21.04 版。我需要使用 R,特别是 JosiahParry 的天才包。我一直在寻找安装软件包的方法,但没有结果。
当给出平原 install.packages("genius")我得到的命令:

Error: object ‘session’ is not exported by 'namespace:rvest'
Ejecución interrumpida
ERROR: lazy loading failed for package ‘genius’
* removing ‘/home/emmuh/R/x86_64-pc-linux-gnu-library/4.1/genius’
Warning in install.packages :
installation of package ‘genius’ had non-zero exit status
关于软件包安装,我还没有找到解决此问题的方法。我也尝试使用 tar.gz 文件进行直接安装,我得到以下信息:
Error: object ‘session’ is not exported by 'namespace:rvest'
Ejecución interrumpida
ERROR: lazy loading failed for package ‘genius’
* removing ‘/home/emmuh/R/x86_64-pc-linux-gnu-library/4.1/genius’
Warning in install.packages :
installation of package ‘/home/emmuh/Descargas/genius_2.2.3.tar.gz’ had non-zero exit status

我尝试通过终端更改安装的存储库,但我收到错误消息说存储库没有 key 或它们不安全,因此它们将无法通过遗漏。
使用 RStudio Cloud 时,我没有收到任何错误。

最佳答案

我重新安装了 Pop!OS 并开始下载 R 和 RStudio。通过一些 reddit 帮助并密切注意错误,结果发现我缺少 rvest 库,该库需要通过终端安装 openssl 和 libcurl:sudo apt install libcurl4-openssl-dev对于 libcurl,然后是用于 openssl 的。没有复制两个安装代码,但 R 将它显示在终端中(以及许多其他错误),您只需搜索一下即可。在那之后,我能够安装天才,没有其他问题。

关于R:无法在 PopOS 21.04 中安装天才包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68974714/

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