jupyter-execute command not found

In this troubleshooting guide we learn how to fix jupyter-execute command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

jupyter-execute: command not found

or when using sudo you get the following error message

sudo: jupyter-execute: command not found

Solutions to jupyter-execute: command not found

How To Fix jupyter-execute: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu jupyter-execute is provided by python3-nbclient package.

python3-nbclient is:

nbclient is a client library for programmatic execution of jupyter notebook files in different execution contexts. It was previously part of nbconvert (ExecutePreprocessor).

This package installs the library for Python 3.

To fix this problem, we can install more using the command below.

sudo apt-get -y install python3-nbclient

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install python3-nbclient.

sudo apt -y install python3-nbclient

Or if you have aptitude installed you can use the following command.

sudo aptitude install python3-nbclient

Summary

In this tutorial we learn how to fix jupyter-execute command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.