是否可以在Rent Server和CentOS 7上使用RStudio Server配置conda python环境?

时间:2019-03-14 19:44:22

标签: python r centos7 conda reticulate

我正在尝试使用RStudio服务器与同事共享一堆python。我的印象是python用户可以使用reticulate软件包来管理他们的conda环境。软件包中包含乐观命名的命令,但不幸的是,它们实际上并没有执行它们看起来要执行的操作。从这个github问题看来,从Python用户的角度来看,带有reticulate的RStudio Server实际上是完全没有用的:他们无法从R管理自己的conda环境。

https://github.com/rstudio/reticulate/issues/292

是否有人找到一种解决方法,允许RStudio服务器会话的用户仅针对其会话或项目修改LD_LIBRARY_PATH?例如,可以在其.Rprofile中激活特定的conda环境吗?

我正在使用开放源代码的RStudio Server 1.2预览版:

R version 3.5.1 (2018-07-02)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: CentOS Linux 7 (Core)

我创建了以下conda环境:

$ conda create -n spec35 python=3.5 numpy pandas matplotlib

然后我在R中运行以下代码:

library(reticulate)

conda_env = "/home/wdkrnls/.conda/envs/spec35"
use_python(file.path(conda_env, "bin/python"))
use_condaenv(conda_env)

当我尝试在python块中评估print(1+1)时,看到以下错误:

 Error in py_call_impl(callable, dots$args, dots$keywords) : 
  ImportError: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found

0 个答案:

没有答案