threaded_arduino_pyserial Create and load virtual environment sudo apt install python3-venv python3 -m venv .env source .env/bin/activate Install dependencies pip3 install -r requirements.txt Run the code