pip install serial python 3 code example Example: install serial python python -m pip install pyserial