Install python-serial by entering the following commands in the terminal:
sudo apt update sudo apt install python-serial
Description:
pyserial - module encapsulating access for the serial port
This module encapsulates the access for the serial port. It provides back-ends for standard Python running on Windows, Linux, BSD (possibly any POSIX compliant system). The module named "serial" automatically selects the appropriate back-end.
Homepage: http://pyserial.sourceforge.net/
Version: 3.4-2
Section: python