Pythonazure.存储重要错误:没有命名的模块密码学.危险品.原语.钥匙套

2024-09-27 00:14:14 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试从我的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 cryptographyhttps://pypi.python.org/pypi/azure-storage,但这并没有改变任何东西。我一直得到相同的错误ImportError: No module named cryptography.hazmat.primitives.keywrap。我甚至试图导入azure.storage,但这会引发相同的错误。
如果有人能对如何让azure-storage-blob在Raspbian上工作有所启发,我将非常感激。 提前谢谢你。在


Tags: infromimport错误linestorageazureblob

热门问题