我正在尝试执行脚本'Azure Notebooks'
以将 blob 上传到Azure Data lake Gen 2
using 'Azure-storage-blob'
,但由于我无法做到,所以不能import 'BlobServiceClient'
。我已经'Azure-storage-blob' - 12.9.0
安装了最新版本。但仍然面临进口问题'BlobServiceClient'
下面是代码
import azure.storage.blob
from azure.storage.blob import blockblobservice
import os, uuid
from azure.storage.blob import BlobServiceClient, BlobClient, ContainerClient, __version__
下面是错误
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-278-283cd1817c6e> in <module>
7 from azure.storage.blob import blockblobservice
8 import os, uuid
----> 9 from azure.storage.blob import BlobServiceClient, BlobClient, ContainerClient, __version__
10
11 try:
ImportError: cannot import name 'BlobServiceClient'