当我尝试做python manage.py syncdb
在我的Django应用程序命名azure.storage.blob,我得到的错误导入错误:没有模块名为azure.storage.blob。但问题是,如果一个人做pip freeze
以下软件包安装:获取导入错误:没有模块做蟒蛇manage.py执行syncdb
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的存储安装,因为是显而易见的。为什么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
注:请询问详细信息,如果您需要它
它实际上工作! –