Код: Выделить всё
sudo apt-get update
sudo apt-get install -y build-essential libssl-dev python3-dev uuid-dev cmake python3-pip
pip3 install uamqp --no-binary=uamqp uamqp
pip3 install azure-iot-hub
Код: Выделить всё
Name: azure-iot-hub
Version: 2.6.1
Summary: Microsoft Azure IoTHub Service Library
Home-page: https://github.com/Azure/azure-iot-hub-python/
Author: Microsoft Corporation
Author-email: opensource@microsoft.com
License: MIT License
Location: /home/developer/virtual-env/lib/python3.11/site-packages
Requires: azure-core, msrest, uamqp
Required-by:
Код: Выделить всё
from azure.iot.hub import IoTHubRegistryManager
Код: Выделить всё
>>> from azure.iot.hub import IoTHubRegistryManager
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'azure.iot.hub'
>>>
Подробнее здесь: https://stackoverflow.com/questions/787 ... re-iot-hub