在Python中安装Azure

0wi1tuuw  于 2023-02-07  发布在  Python
关注(0)|答案(2)|浏览(376)

然后,我尝试在命令行上安装Azure包,并得到以下错误:

C:\Windows\system32>conda install azure

Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: -
Found conflicts! Looking for incompatible packages.
This can take several minutes.  Press CTRL-C to abort.
Examining @/win-64::__archspec==1=x86_64:  40%|████████████████▊                         | 2/5 [00:00<00:00, 14.11it/s]|failed

UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:

Specifications:

  - azure -> python[version='>=2.7,<2.8.0a0|>=3.5,<3.6.0a0|>=3.6,<3.7.0a0']

Your python: python=3.8

If python is on the left-most side of the chain, that's the version you've asked for.
When python appears to the right, that indicates that the thing on the left is somehow
not available for the python version you are constrained to. Note that conda will not
change your python version to a different minor version unless you explicitly specify
that.

它似乎说它与我的Python更新版本不兼容,有人知道如何在Python 3.8中正确安装这个包吗?
(在azure包中,我特别需要azure.函数作为func和azure.storage.queue.QueueService。)

fd3cxomn

fd3cxomn1#

您尝试安装的azure package自2020年4月起已弃用,将来可能不会收到更新。
从v5.0.0开始,此包已弃用。请安装应用程序所需的以azure为前缀的服务特定包。
在您的情况下,这可能是azure-functionsazure-mgmt-storage,尽管您必须自己对文档进行一些挖掘,以找到真正适合您的需求的文档。

x8diyxa7

x8diyxa72#

试试这个cli,它会工作:

pip install azure-mgmt-storage

相关问题