簡體   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