使用Python pip安装AzureIoHubDeviceClient时出错

2024-04-24 10:21:10 发布

您现在位置:Python中文网/ 问答频道 /正文

尝试遵循tutorial about Azure IoT for Python我在第一步就失败了。。。在

尝试安装Python包,如文档中所述:

pip install azure-iothub-device-client

我得到这个错误:

^{pr2}$

我在virtualenv(名为azure)中运行Python。Pip和Python版本信息:

(azure)fermin@neodeb:~$ pip --version
pip 9.0.1 from /home/fermin/src/virtualenvs/azure/local/lib/python2.7/site-packages (python 2.7)

(azure)fermin@neodeb:~$ python --version
Python 2.7.9

关于这个问题和解决方法的一些提示?谢谢!在


Tags: installpip文档clientforversiondeviceazure
2条回答

根据Azure官方教程^{},它显示了关于azureiothubsdkforlinux&MacOS的说明,如下所示。在

Note

The pip packages for azure-iothub-service-client and azure-iothub-device-client are currently available only for Windows OS. For Linux/Mac OS, please refer to the Linux and Mac OS-specific sections on the Prepare your development environment for Python post.

文档Prepare your development environment for Python正在讨论如何在Linux/macos上为Python构建azureiothub sdk。在

您应该使用这个命令,但是不要忘记安装pip3,在您提到的教程中有一个链接

pip3安装azure iothub设备客户端

相关问题 更多 >