watchgod command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
watchgod: command not found
or when using sudo you get the following error message
sudo: watchgod: command not found
Solutions to watchgod: command not found
How To Fix watchgod: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu watchgod is provided by python3-watchgod package.
python3-watchgod is:
Simple, modern file watching and code reload in Python. It can watch for changes in a directory and run a function to restart it when code changes. Notifications about change events as well as to restart a process can use the callback argument to pass a function which will be called on every file change with one argument: the set of file changes.
This package contains the Python 3 version of the library.
To fix this problem, we can install more using the command below.
sudo apt-get -y install python3-watchgod
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install python3-watchgod.
sudo apt -y install python3-watchgod
Or if you have aptitude installed you can use the following command.
sudo aptitude install python3-watchgod
Summary
In this tutorial we learn how to fix watchgod command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.