SolvedIRkernel Error in IRkernel::installspec() : jupyter-client has to be installed but “jupyter kernelspec --version” exited with code 127. In addition: Warning message: running command '"jupyter" kernelspec --version' had status 127

Hello,
I am COMPLETELY new to code (basically have no idea what I'm doing) and need some help. I was asked to follow the following instructions:

Now I just keep getting stuck at the second step in installing the IRkernel: IRkernel::installspec()
and I get this error message:

Error in IRkernel::installspec() : jupyter-client has to be installed but “jupyter kernelspec --version” exited with code 127. In addition: Warning message: running command '"jupyter" kernelspec --version' had status 127

I read through other posts in the site but I couldn't follow and would really appreciate if someone could help me out.

Thank you so much.

21 Answers

✔️Accepted Answer

Two options:

  • Find R.exe somewhere on your system and run this from the Anaconda prompt. Then you should be able to install IRkernel from your existing R environment.
  • Install R through conda. If I recall correctly, the command is conda install -c r r-irkernel. This is simpler because it lets conda manage everything, but it creates a separate R installation from the one Rstudio uses, which may be confusing.

Other Answers:

On Linux, you can also place a symlink to jupyter in a directory that's on the path (eg /usr/bin).
cd /usr/bin
sudo ln -s /full/path/to/anaconda3/bin/jupyter jupyter

In Ubuntu 17.10, I have jupyter installed with Anaconda. But my R is not installed via conda. I was getting this error, even though ../anaconda3/bin was added to the PATH in ~/.bashrc

More Issues: