Python: ModuleNotFoundError 'No module named paho' beheben

English Deutsch

Problem:

Beim Ausführen des Python-Skripts erscheint eine Fehlermeldung wie

traceback.txt
Traceback (most recent call last):
    File "test.py", line 2, in <module>
        import paho.mqtt.client as mqtt
ModuleNotFoundError: No module named 'paho'

Lösung

Das Paket paho-mqtt installieren mit

install_paho.sh
pip install -U paho-mqtt

Check out similar posts by category: MQTT, Python