Forum Discussion
Maciej_Zemlo
Jan 23, 2022Copper Contributor
No module named 'azure.iot'
Hello,
I'm developing python script on raspberry pi using azure-iot-device. Make some progress with connecting and sending data to Azure Hub but now I have python error:
from azure.iot.device.aio import IoTHubDeviceClient
ModuleNotFoundError: No module named 'azure.iot'; 'azure' is not a package
I haven't found solution so far. Tried to checked python, pip version issue, uninstall and install module with no result.
- christian-vorhemus
Microsoft
Maciej_Zemlo Did you install azure-iot-device?
pip3 install azure-iot-device
Did you name your file azure.py? If so, try renaming it.