I am trying to set up an mqtt client, but I am getting an ImportError:
I installed paho with:
pip install paho-mqtt
It said: Successfully installed dnspython-1.15.0 paho-mqtt-1.3.1 python-etcd-0.4.5 urllib3-1.22
But when I am trying to call my python script with sudo python listen.py
it says:
File "listen.py", line 6, in <module>
import paho.mqtt.client as mqtt
ImportError: No module named paho.mqtt.client
When I am typing python --version
it says: Python 2.7.13
and when I call pip freeze
paho is listed paho-mqtt==1.3.1
Any suggestions what's wrong?