【发布时间】:2016-03-28 03:11:21
【问题描述】:
当我尝试在我的 Django 应用程序中执行 python manage.py syncdb 时,我收到错误 ImportError: No module named azure.storage.blob。但问题是,如果有pip freeze,则会安装以下软件包:
azure-common==1.0.0
azure-mgmt==0.20.1
azure-mgmt-common==0.20.0
azure-mgmt-compute==0.20.0
azure-mgmt-network==0.20.1
azure-mgmt-nspkg==1.0.0
azure-mgmt-resource==0.20.1
azure-mgmt-storage==0.20.0
azure-nspkg==1.0.0
azure-servicebus==0.20.1
azure-servicemanagement-legacy==0.20.1
azure-storage==0.20.3
显然 azure-storage 已安装,这一点很明显。为什么 azure.storage.blob 无法导入?我什至进入了我的.virtualenvs 目录,并一路进入azure.storage.blob(即~/.virtualenvs/myvirtualenv/local/lib/python2.7/site-packages/azure/storage/blob$)。它存在!
我该怎么办?这里的答案没有帮助:Install Azure Python api on linux: importError: No module named storage.blob
注意:如果需要,请询问更多信息
【问题讨论】:
标签: python django azure azure-blob-storage