gpt4 book ai didi

r - 插入符号包安装失败

转载 作者:行者123 更新时间:2023-12-04 10:50:45 27 4
gpt4 key购买 nike

我在尝试安装 caret 包时遇到此错误:

ERROR: compilation failed for package ‘ddalpha’
* removing ‘/home/rspark/R/x86_64-redhat-linux-gnu-library/3.3/ddalpha’
Warning in install.packages :
installation of package ‘ddalpha’ had non-zero exit status
ERROR: dependency ‘ddalpha’ is not available for package ‘recipes’
* removing ‘/home/rspark/R/x86_64-redhat-linux-gnu-library/3.3/recipes’
Warning in install.packages :
installation of package ‘recipes’ had non-zero exit status
ERROR: dependency ‘recipes’ is not available for package ‘caret’
* removing ‘/home/rspark/R/x86_64-redhat-linux-gnu-library/3.3/caret’
Warning in install.packages :
installation of package ‘caret’ had non-zero exit status

有什么想法吗?

install.packages("ddalpha")

它给出了同样的错误:

/usr/lib64/R/library/BH/include/boost/exception/exception.hpp:137: error: expected declaration before end of line
make: *** [AlphaProcedure.o] Error 1
ERROR: compilation failed for package ‘ddalpha’
* removing ‘/home/rspark/R/x86_64-redhat-linux-gnu-library/3.3/ddalpha’

最佳答案

我找到了解决办法。我有同样的问题。安装 caret 及其所有依赖项后,未安装 ddalpha。然后我尝试单独安装包 ddalpha 。我收到了消息:

"有可用的二进制版本,但源版本更高: 二进制源需要编译ddalpha 1.2.1 1.3.1 是的

你想从源代码安装需要编译的包吗?是/否:n"

好吧,如果我回答是,那就不行了。但是当我回答不时,它确实有效。新版本好像有点问题,不过之前的版本没问题。

关于r - 插入符号包安装失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46174574/

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