Reputation: 501
All packages installed fine ('pbdZMQ', 'repr', 'devtools', 'IRdisplay', 'IRkernel').
IRkernel::installspec()
But the above command gave an error "Jupyter or IPython 3.0 has to be installed". jupyter is installed in Anaconda (python 2.7.11) and works with both Python & Julia.
Upvotes: 0
Views: 2060
Reputation: 321
I initially received the same error as the OP using Ubuntu 16.04
As a result of @Dirk pull request to the documentation, I believe this note has been added to the Installation Instructions.
On OS X, be sure to execute this in R started from the Terminal, not the R App!
(This is because the R app doesn’t honor $PATH changes in ~/.bash_profile)
After starting R from the Terminal in Ubuntu, I was able to follow these instructions and hence did not receive the error anymore:
install.packages(c('repr', 'IRdisplay', 'evaluate', 'crayon', 'pbdZMQ', 'devtools', 'uuid', 'digest'))
devtools::install_github('IRkernel/IRkernel')
After entering the above commands in the R shell, I opened up Jupyter-Notebook from the Terminal (not the R shell). R is now an option along with Python 3.
Then within the notebook, I re-entered the following commands:
install.packages(c('repr', 'IRdisplay', 'evaluate', 'crayon', 'pbdZMQ', 'devtools', 'uuid', 'digest'))
devtools::install_github('IRkernel/IRkernel')
IRkernel::installspec()
While the first two commands returned 'Non-zero exit status warnings' the IRkernel::installspec()
successfully executed with no errors.
R is now working properly in Ubuntu 16.04
Upvotes: 1
Reputation: 368241
I had the same issue in the tutorial this morning -- on the same platform.
See my pull request to the documentation here -- it worked for me once I added the pip
/ pip3
created bin/
directory to the $PATH
. However, I used plain Python and not the overbearingly large Anaconda installation.
Upvotes: 2