gpt4 book ai didi

python - R reticulate 从 Github 安装 python 库

转载 作者:行者123 更新时间:2023-12-05 05:55:36 27 4
gpt4 key购买 nike

有没有人对如何从 reticulate 直接安装 Github 上可用的 python 库有任何想法? py_install 函数仅支持 condaPyPI 上可用的库。

例如,当基于仅在 Github 上可用的 python 库构建 R 包时,我是否不可避免地必须将库的源代码复制到我的包中?

最佳答案

最后,在我为包设置 python 环境的函数中,我调用了 R base system 函数,我在其中传递了安装命令。

例如,对于在 Conda 上不可用的 pylearn-parsimony 库,我使用了这一行:

system("pip install git+git://github.com/neurospin/pylearn-parsimony.git@master")

关于python - R reticulate 从 Github 安装 python 库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69431624/

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