reinstall pip3 package pyserial code example Example: install serial python python -m pip install pyserial