Understand that the lib is installed on another location so that the active python version cab find and use it.
Then I investigated which versions are running on my rpi
According to Thonny: 3.7.3
I also see that on the file system in “/ usr / local / lib”.
But the “python version” cmd returns an other version: 2.7.
That is a mismatch. I suspect it has to do with the local or global installation of the lib. Is that correct? And why does “python –version” not respond with version 3.7.3?
I can’t help you with the detail but I can tell you python --version will return the python2 version, python3 --version will return the python3 version.
How do I get the mqtt-client working on my pi in a configuration with multiple installations (and different versions) of Phyton.
And in addition to getting it working, also understanding why it works now. The missing element in my research so far was the “python3 –version” cmd that Gordon mentioned