resolved I have set up a conda environment with anaconda, with python 3.9 and paho-mqtt 1.6.1. I have also tested an Environment that worked for someone else but it doesn't work on my System. Other packages work, like numpy.
The code fails at the first row
import paho.mqtt.client as mqtt
wit the error ModuleNotFoundError: No module named 'paho.mqtt'; 'paho' is not a package
.
Does anyone have a solution or at least some ideas i could try?
For example if i create a new conda env with conda env --create env python=3.9
, and then try to run import numpy
it obviously doenst run. Then i do pip install numpy
and run it again and it works. Though if i do the same with import paho.mqtt
it doesn't work even after pip install paho-mqtt
.