ncdirect-pydemo command not found

In this troubleshooting guide we learn how to fix ncdirect-pydemo command not found error message

Introduction

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

ncdirect-pydemo: command not found

or when using sudo you get the following error message

sudo: ncdirect-pydemo: command not found

Solutions to ncdirect-pydemo: command not found

How To Fix ncdirect-pydemo: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu ncdirect-pydemo is provided by python3-notcurses package.

python3-notcurses is:

Notcurses facilitates the creation of modern TUI programs, making full use of Unicode and 24-bit TrueColor. It presents an API similar to that of Curses, and rides atop Terminfo.

These files are necessary for Python development using Notcurses. The notcurses-pydemo script verifies these Python wrappers.

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

sudo apt-get -y install python3-notcurses

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

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

sudo apt -y install python3-notcurses

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

sudo aptitude install python3-notcurses

Summary

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