Hi, I woud like to use PAHO mqtt in HA on Raspberry Pi.
After installing Hassbian, HA is in virtualenv environment. And I use sudo pip3 install paho-mqtt python-etcd
to install paho when I deactivate the virtualenv. (Because when I only use pip3 install paho-mqtt python-etcd
in virtual environment, permission denied)
Then I found I can only import homeassistant
when I develop under virtualenv but I cannot import PAHO
. If I deactivate the virtualenv, I can only import PAHO
but cannot import homeassisant
.
How can I import both homeassistant and PAHO under either virtual or virtual environment??
Thank!