【问题标题】:Anaconda R Kernel Notebook Error - with custom R library pathAnaconda R 内核笔记本错误 - 使用自定义 R 库路径
【发布时间】:2021-04-21 05:52:14
【问题描述】:

我目前正在使用 Rstudio 和 Anaconda,但无法启动 Anaconda R Kernel。下面是收到的错误提示。

我的环境变量确实指向存储我的 RStudio 库的路径。重新指向默认库路径是否会导致 Anaconda R 内核出现问题?

感谢您的帮助。

谢谢, 詹姆斯

[I 15:19:18.595 NotebookApp] Kernel started: ddadae8b-dfe7-4392-ad1f-0b4b7157bdad, name: ir
Error in inDL(x, as.logical(local), as.logical(now), ...) :
  unable to load shared object 'C:/Users/xxx/Downloads/rlibs/rlang/libs/x64/rlang.dll':
  LoadLibrary failure:  The specified procedure could not be found.
Calls: :: ... namespaceImport -> loadNamespace -> library.dynam -> dyn.load -> inDL
Execution halted
[I 15:19:21.598 NotebookApp] KernelRestarter: restarting kernel (1/5), new random ports
Error in inDL(x, as.logical(local), as.logical(now), ...) :
  unable to load shared object 'C:/Users/xxx/Downloads/rlibs/rlang/libs/x64/rlang.dll':
  LoadLibrary failure:  The specified procedure could not be found.
Calls: :: ... namespaceImport -> loadNamespace -> library.dynam -> dyn.load -> inDL
Execution halted

【问题讨论】:

    标签: r anaconda


    【解决方案1】:

    在这里找到答案

    https://richpauloo.github.io/2018-05-16-Installing-the-R-kernel-in-Jupyter-Lab/

    在您的计算机上查找 R.exe 的位置。在我的电脑中,这个可执行文件位于:C:\Program Files\R\R-3.4.3\bin

    以管理员身份打开另一个 Anaconda Prompt 并使用 cd 文件路径将目录更改为 R.exe 在您计算机上的任何位置。在我的电脑上是:cd C:\Program Files\R\R-3.4.3\bin,但对你来说可能不同。

    然后在 Anaconda Prompt 中使用 R.exe 以管理员模式运行 R。

    您会注意到您正处于 R 会话中。从这里,在终端中运行以下三个命令。

    install.packages("devtools")

    devtools::install_github("IRkernel/IRkernel")

    IRkernel::installspec()

    按顺序,他们 (1) 安装用于获取 install_github() 函数的 devtools 包,(2) 从 github 安装 IR 内核,以及 (3) 告诉 Jupyter 在哪里可以找到 IR 内核。

    【讨论】:

      猜你喜欢
      • 2016-01-31
      • 2023-03-24
      • 1970-01-01
      • 2018-02-25
      • 1970-01-01
      • 2021-03-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多