繁体   English   中英

R reticulate 从 Github 安装 python 库

[英]R reticulate install python libraries from Github

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

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

最后,在我为包设置 python 环境的函数中,我调用了R 基本<\/strong>system<\/code>函数,并在其中传递了 install 命令。

例如,对于 Conda 上不可用的pylearn-parsimony<\/strong>库,我使用了以下行:

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM