Error install lybrary

tried to install the libraries on linux ubuntu and received the following error:

The ‘linux/input.h’ and ‘linux/input-event-codes.h’ include files
are missing. You will have to install the kernel header files in
order to continue:

      dnf install kernel-headers-$(uname -r)
      apt-get install linux-headers-$(uname -r)
      emerge sys-kernel/linux-headers
      pacman -S kernel-headers
  In case they are installed in a non-standard location, you may use
  the '--evdev-headers' option to specify one or more colon-separated
  paths. For example:
      python \
        build \
        build_ecodes --evdev-headers path/input.h:path/input-event-codes.h \
        build_ext --include-dirs path/ \
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for evdev
Failed to build evdev
ERROR: Could not build wheels for evdev, which is required to install pyproject.toml-based projects

Welcome to our forum @ulissesbugs .

It looks like your Ubuntu system is missing some libraries.
Could you please try the following:

sudo apt update
sudo apt install build-essential

After that, I believe it can build the package dependencies properly.

Let me know how it goes.