【发布时间】:2021-10-16 05:04:51
【问题描述】:
我正在创建一个 webjob,它具有以下 python 依赖项(azure-storage-blob==12.8.1,azure) 以及其他依赖项,问题在于我的代码在将近 3-4 小时后卡在下面仅限。
Dowenloading azure_common-1.1.8-py2.py3-none-any.whl(7.9kb)
pip is looking at multiple versions of azure-core to determine which version is compatible
with other requirements. This could take a while.
[08/12/2021 19:55:54 > d827c9: INFO] INFO: This is taking longer than usual. You might need to
provide the dependency resolver with stricter constraints to reduce runtime. If you want to
abort this run, you can press Ctrl + C to do so. To improve how pip performs, tell us what
happened here: https://pip.pypa.io/surveys/backtracking
问题是,如果我安装了特定版本的 azure,那么它与 azure-storage-blob 不兼容,并且在导入 blob 存储时抛出错误,如果 f 没有安装 azure 或其他与 azure 不兼容的 azure 版本- storage-blob==12.8.1 并抛出错误:
from azure.keyvault import KeyVaultAuthentication, KeyVaultClient
ImportError: cannot import name 'KeyVaultAuthentication'
有谁知道如何在创建 azure webjob 时安装 python 包以及解决此问题的解决方案
我还有一个与触发的 webjob 相关的问题,所以假设我成功安装了软件包,那么每次运行时它是否会安装所有软件包,或者它只会在第一次点击并保存在 env 中的软件包时进行
【问题讨论】:
标签: azure azure-blob-storage azure-webjobs azure-keyvault azure-python-sdk