我正在使用notebooks.azure.com学习python。我在试着用python管理Blobs。
我遇到的许多文档都提到了pip install azure-storage-blob,然后使用了BlobServiceClient (类?)与Azure存储交互。
不幸的是,当我试图调用ImportError: cannot import name 'BlobServiceClient'时,我得到了错误:from azure.storage import BlobServiceClient。这发生在安装和升级azure-storage (v0.36.0)和azure-blob-storage (v12.3.0)之后。

这是否意味着notebooks.azure.com正在使用python v2.1 SDK (似乎使用https://learn.microsoft.com/en-us/azure/storage/blobs/storage-quickstart-blobs-python-legacy#learn-about-the-sample-code而不是BlobServiceClient)?
如何检查我的运行的python的哪个版本?
编辑1:
!pip install azureml-sdk\[notebooks,automl\] --upgrade后没有更改

发布于 2020-04-19 17:31:09
你是试一试吗
pip install --upgrade azureml-sdk\[notebooks,automl\]发布于 2020-09-14 17:00:14
淡蓝-存储是不推荐的,不要用那个。
https://stackoverflow.com/questions/61306476
复制相似问题