Jupyter noteb的R内核

2024-09-30 12:27:40 发布

您现在位置:Python中文网/ 问答频道 /正文

我正试图从git峎uhub“https://irkernel.github.io/installation/”上的devtools库安装irkernelforjupyter笔记本,但在安装时遇到错误。以下是我正在尝试的和我得到的错误:

devtools::install_github('IRkernel/IRkernel')

错误:

'C:\Program' is not recognized as an internal or external command, operable program or batch file. Installation failed: Command failed (1)

我无法从devtools安装IRkernel,它返回上述错误。R版有什么问题吗?谁能帮忙吗?在


Tags: orhttpsiogitgithub错误installation笔记本
2条回答

简而言之,在Windows系统上发生这种情况的原因是,您有“C:\Program Files”,而R不能很好地处理中间的空白:

This happens when both of the following conditions are met
- R is installed in a directory that contains whitespace in its name (e.g. "Program Files")
- Short filenames (SFN) are disabled for the volume on which R is installed

可以通过发出以下命令进行验证:

R.home()

解决方案:

尝试卸载并重新安装R,这次是在一个全新的目录树中(不是在\Program Files下)。在

我知道这不是用户的错,这里有一个ongoing issue thread on the package,但我上面建议的是您需要的快速修复。在

如果你用的是水蟒,你可以试试这个。打开anaconda命令提示符并输入

conda install -c r r-irkernel 

资料来源: https://anaconda.org/r/r-irkernel

相关问题 更多 >

    热门问题