[英]R reticulate install python libraries from Github
有人對如何從reticulate直接安裝 Github 上可用的 python 庫有任何想法嗎? py_install
函數僅支持conda或PyPI上可用的庫。
例如,當基於僅在 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.