由于Anaconda,R Jupyter Notebook中的内核错误? [英] Kernel Error in R Jupyter Notebook due to Anaconda?

查看:288
本文介绍了由于Anaconda,R Jupyter Notebook中的内核错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要将R脚本捆绑到某些笔记本中,例如Jupyter Notebook.我的OSX设置包含Homebrew,Rstudio和Anaconda.接下来,我尝试使Jupyter Notebook中的R正常工作.我收到以下错误

I need to bundle R scripts into some Notebook such as Jupyter Notebook. My OSX setup contains Homebrew, Rstudio and Anaconda. Next I try to get R in Jupyter Notebook working. I am getting the following error

FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/Cellar/r/3.3.3_1/R.framework/Resources/bin/R': '/usr/local/Cellar/r/3.3.3_1/R.framework/Resources/bin/R'

表明路径以某种方式被弄乱了.另外,Jupyter笔记本以红色显示内核错误.路径/Users/hhh/anaconda3/envs/是Anaconda路径,因此这对于Anaconda和Jupyter Notebook必定是一个问题.

that shows that paths are somehow messed up. Also, the Jupyter Notebook shows Kernel Error in Red. The path /Users/hhh/anaconda3/envs/ is a Anaconda path so this must be an issue with Anaconda and Jupyter Notebook.

如何在Conda下的Jupyter Notebook中运行R?如何解决内核错误?

有关潜在冲突的问题

  1. 由于Homebrew和Anaconda造成的潜在冲突此处.

推荐答案

您的conda管理与R的绑定.您需要通过conda安装IRkernel软件包,

Your conda manages your bindings to R. You need to install the IRkernel package via conda such that

$ conda install -c r r-irkernel 

解决该错误.

这篇关于由于Anaconda,R Jupyter Notebook中的内核错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆