jupyter notebook配置R

一般安装步骤

install.packages(c('repr', 'IRdisplay', 'evaluate', 'crayon', 'pbdZMQ', 'devtools', 'uuid', 'digest'))
devtools::install_github('IRkernel/IRkernel')
IRkernel::installspec(user = FALSE)

这是网上遇到一般的情况安装,这里就我遇到的问题一一列举

  1. install.packages下载慢的情况,在Rstudio中进行换源
options("http://mirrors.utsc.edu.cn/CRAN")
  1. devtools安装失败的情况,我看了一下安装devtools时候最开始的报错情况,是openssl没有安装上,使用install.packages安装openssl的时候还是报错,解决的方法是在终端另外安装一个依赖库,见[文章1][http://blog.sina.com.cn/s/blog_82613ab70102x8v9.html]
sudo apt-get install openssl 
sudo apt-get install libssl-dev
  1. IRkernel安装的时候报错,
jupyter-client has to be installed but “jupyter kernelspec --version” exited with code 127

[文章2][https://stackoverflow.com/questions/44056164/jupyter-client-has-to-be-installed-but-jupyter-kernelspec-version-exited-wit]提了很多办法,我在终端试了一下jupyter kernelspec --version,没有报错,我解决问题采用的是命令

sudo ln -s /home/'my user name'/anaconda3/bin/jupyter /usr/bin/jupyter
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章