SyntaxFix
Write A Post
Hire A Developer
Questions
You're importing the module, not the class. So, you must write:
from serial import Serial
You need to install serial module correctly: pip install pyserial.
serial
pip install pyserial