我正在尝试从我的RPi3上传图片到Azure blob存储。Im使用raspbian和python模块,如下所述。在
我的问题是,无论我做什么,我总是得到以下错误
>>> from azure.storage import BlobService
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/pi/.virtualenvs/azure/lib/python2.7/site-packages/azure_storage-0.33.0-py2.7.egg/azure/storage/__init__.py", line 21, in <module>
from .models import (
File "/home/pi/.virtualenvs/azure/lib/python2.7/site-packages/azure_storage-0.33.0-py2.7.egg/azure/storage/models.py", line 27, in <module>
from cryptography.hazmat.primitives.keywrap import(
ImportError: No module named cryptography.hazmat.primitives.keywrap
我试过pip install cryptography
和https://pypi.python.org/pypi/azure-storage,但这并没有改变任何东西。我一直得到相同的错误ImportError: No module named cryptography.hazmat.primitives.keywrap
。我甚至试图导入azure.storage
,但这会引发相同的错误。
如果有人能对如何让azure-storage-blob
在Raspbian上工作有所启发,我将非常感激。
提前谢谢你。在
如果不需要0.33.0的新功能,可以尝试坚持使用azurestorage0.32.0来避免使用加密技术。在某些系统(https://github.com/Azure/azure-storage-python/issues/219)上使用密码有一些困难
相关问题 更多 >
编程相关推荐