How to import Azure BlobService in python?

前端 未结 4 1136
名媛妹妹
名媛妹妹 2020-12-06 10:00

We are able to import azure.storage, but not access the BlobService attribute

The documentation says to use the following import statement:

from azur         


        
4条回答
  •  無奈伤痛
    2020-12-06 10:54

    I had the same issue after using pip to install the azure package and, as the chosen answer suggests, this can be fixed by installing azure.storage 0.33.0.

    However, if you're using pip, you might need to use the "--upgrade" option for it to install properly (this was my experience):

    pip install azure-storage --upgrade
    

提交回复
热议问题