jupyter-client has to be installed but "jupyter kernelspec --version" exited with code 127

irkernel::installspec()
in system2("jupyter", c("kernelspec", "--version"), false, false) : error in running command
install jupyter client
install jupyter-client r
jupyter kernelspec exited with code 127
irkernel installspec jupyter client has to be installed
irkernel::installspec(user = false)
there is no package called 'irkernel

I have already installed Jupyter notebook in my ubuntu 16.04 machine. In jupyter notebook there is by default python installed. Now I want to use R from jupyter notebook.

To do so I followed IRkernel installation link and run below commands:

install.packages('devtools')

devtools::install_github('IRkernel/IRkernel')

But when I run IRkernel::installspec() command it shows below error:

jupyter-client has to be installed but "jupyter kernelspec --version" exited with code 127

I am now confused why this error occurs.

Running this command from RStudio will show this error. When you run this command from command line/ terminal then everything will be fine.

So just type R from your command line.

Then Run below commands:

install.packages('devtools')

devtools::install_github('IRkernel/IRkernel')

IRkernel::installspec()

IRkernel installation error, jupyter-client has to be installed but “jupyter kernelspec --version” exited with code 127. In addition: Warning message: In system2("jupyter", c("kernelspec",  Dismiss Join GitHub today. GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.

On some Windows systems you may not succeed even if you run R from cmd / powershell. That's the case on my machine. My workaround is to run R from Anaconda Prompt (if you installed Jupyter via Anaconda). You may need to specify the full path if R is not on your PATH.

I think this is some problem related to the PATH, however I had no luck adding Anaconda\Lib\site-packages\jupyter_client to my system PATH.

Installing R on Jupyter, I attempted to install R on Jupyter but the install was fairly difficult so I wanted to share that process in Error in IRkernel::installspec() : jupyter-client has to be installed but “jupyter kernelspec — version” exited with code 127. Dismiss Join GitHub today. GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.

  1. If Anaconda is installed and the Jupyter-Notebook with it (should be the standard install), open up the Anaconda prompt, not the Windows command prompt or the Anaconda Navigator
  2. Look up the executable of R (not Rgui or Rstudio), it should be somewhere like C:\Program Files\R\R-3.5.1\bin and remember the path typing cd C:\Program Files\R\R-3.5.1\bin and start R by typing R
  3. typing IRkernel::installspec()
  4. Now you can start an R kernel within Jupyter-Notebook

r, jupyter-client tiene que estar instalado pero "jupyter kernelspec --version" salió con has to be installed but “jupyter kernelspec --version” exited with code 127. jupyter-client has to be installed but “jupyter kernelspec --version” exited with code 127. to be installed but “jupyter kernelspec --version” exited with

I have solved with this:

sudo ln -s /home/'my user name'/anaconda3/bin/jupyter /usr/bin/jupyter

Jupyter kernelspec, If you already have a Python environment set up, install Jupyter using your preferred tools. has to be installed but “jupyter kernelspec --version” exited with code 127. Nteract is a nice desktop client for jupyter kernels: Now that we have the  Jupyter or IPython 3.0 has to be installed but could neither run jupyter-client has to be installed but “jupyter kernelspec –version” exited with code 127.

I had the same error but the fix was different:

Make sure you also have anaconda install on your system! (or at least jupyter) https://conda.io/docs/user-guide/install/index.html

jupyter+client+has+to+be+installed+but+jupyter+kernelspec+ , IRkernel::installspec() # Results in # Error in IRkernel::installspec() : # jupyter-​client has to be installed but “jupyter kernelspec --version” exited with code 1. jupyter kernelspec --version Error executing Jupyter command  Note: If you’ve moved on to Jupyter Lab, I have instructions for that which can be found here. I attempted to install R on Jupyter but the install was fairly difficult so I wanted to share that process in the hopes of helping others avoid my issues or at least cut down on your install time. This was on a machine running Windows 10.

r: В IRKernel :: installspec (): jupyter kernelspec --version , #' Install the kernelspec to tell Jupyter about IRkernel. #' #' This can be called multiple times for different R interpreter, but you have to give a #' different name (and displayname to see a difference in the notebook UI).

%pip install jupyterthemes jupyter-client has to be installed but "jupyter kernelspec --version" exited with code 127. running command '"jupyter" kernelspec

Maybe you expect everyone who takes this course to be extremely tech savvy. I have a CS degree but am also a teacher so my hackles go up a bit when I think instructions are incomplete. Below are my

Comments
  • Did you run it from the terminal?
  • Yes I run this command from terminal.
  • is jupyter on your path?
  • I had the same issue. Solved mine by running R in the console as Admin.
  • @ShalomJohn Your comment is the only thing that helped me! It should be an answer.
  • nope, I have the issue when running directly the R console
  • In my case of Windows10, C:\Users[user name]\Anaconda3\Scripts shoud be added to system PATH.
  • This also worked for me, although my path was C:\ProgramData\Anaconda3\Scripts.
  • this worked for me on my win 10 laptop. On win 7 desktop it was not needed. Might be how anaconda is installed on 7 vs 10?
  • That doesn't look like a great fix to me. Is that path accessible to other users on the system who want to use jupyter from /usr/bin? Can't you just add your ~/anaconda3/bin path to your PATH in your .profile or .bash_profile? (Doesn't that happen automatically?)
  • Hello Rup. This link the two directions. It tells R where to find the Jupyter runner and there having the kernel. Once Jupyter has the R kernel I think it could be open to every user.
  • Try Making a Link before reinstalling software
  • Similar issue here on Windows (I think it might be because I chose Miniconda). But I did have to run "conda install jupyter_client" to get installspec() to work.