Reputation: 31
I have installed paho-mqtt on raspberry pi running wheezy with both python 2.7 and 3.5 on board. Documents say paho will work for python 3.x equally but cannot get it to install. It only installs to 2.7 using pip. Any clues how to get it to work on 3.1 I installed it fine on Windows version of python 3.5.2 but not via raspberry. Did dist-upgrade before trying.
Upvotes: 3
Views: 9121
Reputation: 378
On Ubuntu as a Linux based system the following worked for installing Paho with Python3
sudo apt-get install mosquitto
sudo apt-get install mosquitto-clients
sudo python3 -m pip install paho-mqtt
It may be that the final python3 install succeeds without the proceeding steps. Above was the sequence of installs which succeeded after the standard pip3 install paho-mqtt
failed to install the library correctly. Best of luck!
Upvotes: 2