I can't import cayenne.client

myDevices Cayenne Community

I cant install cayenne.client

I cant install cayenne.client






i@raspberrypi:~ $ git clone GitHub - myDevicesIoT/Cayenne-MQTT-Python: Python Library for Cayenne MQTT API
fatal: destination path ‘Cayenne-MQTT-Python’ already exists and is not an empty directory.
pi@raspberrypi:~ $ cd Cayenne-MQTT-Python
pi@raspberrypi:~/Cayenne-MQTT-Python $ python setup.py install
running install
error: can’t create or remove files in install directory

The following error occurred while trying to add or remove files in the
installation directory:

[Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/test-easy-install-5261.write-test'

The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:


Perhaps your account does not have write access to this directory? If the
installation directory is a system-owned directory, you may need to sign in
as the administrator or “root” account. If you do not have administrative
access to this machine, you may wish to choose a different installation
directory, preferably one that is listed in your PYTHONPATH environment

For information on other options, you may wish to consult the

please help me if you can …thanks for you


sudo python setup.py install

sudo python setup.py install
python: can’t open file ‘setup.py’: [Errno 2] No such file or directory

Any suggestions ?

you need to navigate to the cayenne folder.

After install
ModuleNotFoundError: No module named ‘cayenne.client’; ‘cayenne’ is not a package

check your default python version and which version the cayenne library is installed to.