jupyter-kernelspec command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
jupyter-kernelspec: command not found
or when using sudo you get the following error message
sudo: jupyter-kernelspec: command not found
Solutions to jupyter-kernelspec: command not found
How To Fix jupyter-kernelspec: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu jupyter-kernelspec is provided by jupyter-client package.
jupyter-client is:
This software component contains the reference implementation of the Jupyter protocol. It also provides client and kernel management APIs to work with kernels, the “jupyter kernelspec” entry point to install kernelspecs for use with Jupyter frontends and the “jupyter run” command to execute a script on a jupyter kernel.
This package contains the jupyter-kernelspec and jupyter-run tools.
To fix this problem, we can install more using the command below.
sudo apt-get -y install jupyter-client
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install jupyter-client.
sudo apt -y install jupyter-client
Or if you have aptitude installed you can use the following command.
sudo aptitude install jupyter-client
Summary
In this tutorial we learn how to fix jupyter-kernelspec command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.