dmypy command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
dmypy: command not found
or when using sudo you get the following error message
sudo: dmypy: command not found
Solutions to dmypy: command not found
How To Fix dmypy: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu dmypy is provided by mypy package.
mypy is:
Add type annotations to your Python programs, and use mypy to type check them. Mypy is essentially a Python linter on steroids, and it can catch many programming errors by analyzing your program, without actually having to run it. Mypy has a powerful type system with features such as type inference, gradual typing, generics and union types.
This package provides the command-line interface.
To fix this problem, we can install more using the command below.
sudo apt-get -y install mypy
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install mypy.
sudo apt -y install mypy
Or if you have aptitude installed you can use the following command.
sudo aptitude install mypy
Summary
In this tutorial we learn how to fix dmypy command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.