Установите Paho MQTT Client Raspberry Pi

 pip3 install paho-mqtt
Weary Weevil