Trying to install MQTT on my Raspberry Pi 3


#1

I am trying to install the MQTT drivers from Cayenee on my RPI 3 running Raspian. When I run the following command

git clone https://github.com/myDevicesIoT/Cayenne-MQTT-Python
cd Cayenne-MQTT-Python
python setup.py instal

I get the following error:

[Errono 13] Permission denied: ‘/usr/local/lib/python2.7/dist-package/test-easy-install-3142.write-test’

Perhaps your account does not have write access…

I am logged in as pi which should be root so I don’t know what I am missing. I have python 3 running so I don’t know what I am missing. Can anyone help me on this?

Thanks


#2

try sudo python setup.py install


#3

Looks like it worked. I needed sudo. Can’t believe I forgot that.

Thanks.


#4

I’m glad Adam was able to help you @riley_wright!

~B