PySerial problem

Traceback (most recent call last):
File “test.py”, line 2, in
import serial
ModuleNotFoundError: No module named ‘serial’

This does not work for command ‘Import serial’ even I had proper installed PySerial. Can someone help me how to fix this, so i can use my serail port for communication with other devices?

Hi antoninaignjatovic98,

Please run the following command to install pyserial.

$ sudo apt install pip
$ pip install pyserial

You could also use stty to configure your serial port and use cat, echo to that device node directly.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.