雖然,有許多與我提出的問題類似的問題,但沒有一個對我有幫助。
我正在嘗試使用 Django 通過我的系統直接將檔案存盤到我的 azure 存盤 blob 中。有人可以幫我嗎?
這是 pip freeze 的結果:
azure-nspkg==3.0.2
azure-servicebus==0.21.1
azure-servicefabric==6.3.0.0
azure-servicemanagement-legacy==0.20.7
azure-storage-blob==1.5.0
azure-storage-common==1.4.2
azure-storage-file==1.4.0
azure-storage-queue==1.4.0
我收到以下匯入錯誤:
from azure.storage.blob import (
ImportError: cannot import name 'BlobClient' from 'azure.storage.blob'
uj5u.com熱心網友回復:
您可以嘗試重新安裝azure-storage-blob.
卸載: python3 -m pip uninstall azure-storage-blob
安裝: python3 -m pip install azure-storage-blob
您可以參考類似的錯誤:cannot import name 'BlobClient' from 'azure.storage.blob and ImportError: cannot import name 'BlobServiceClient' from 'azure.storage.blob'
轉載請註明出處,本文鏈接:https://www.uj5u.com/qukuanlian/367671.html
上一篇:Azure事件中心高級定價模型
