Skip to content Skip to sidebar Skip to footer

Cannot Import Name 'blockblobservice'

I got the following error: from azure.storage.blob import BlockBlobService ImportError: cannot import name 'BlockBlobService' when trying to run my python project using command p

Solution 1:

There is no need to install the entire azure package.

I believe you are using the new azure-storage-blob library, but since BlockBlobService is from the old azure-storage library, to continue using it, you need to pip uninstall azure-storage-blob if you have installed the new library by accident, and then pip install azure-storage to install the old library.

If you would like to use the new library or cannot do the above, feel free to refer to my answer here which details the context and full instructions of using either the new azure-storage-blob library or the old azure-storage library.

Post a Comment for "Cannot Import Name 'blockblobservice'"