gpt4 book ai didi

python - 安装错误 : Do you have azure>=2. 0.0?

转载 作者:太空宇宙 更新时间:2023-11-04 00:28:01 25 4
gpt4 key购买 nike

当我运行 ansible playbook 时出现以下错误:

Do you have azure>=2.0.0 installed? Try pip install 'azure>=2.0.0' --upgrade- No module named containerservice

Ansible 版本:

ansible 2.4.0.0
config file = /var/www/Ansible/ansible.cfg
configured module search path = [u'/home/vagrant/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python2.7/dist-packages/ansible
executable location = /usr/local/bin/ansible
python version = 2.7.12 (default, Jul 18 2016, 15:02:52) [GCC 4.8.4]

azure :

Name: azure
Version: 2.0.0rc5
Summary: Microsoft Azure Client Libraries for Python
Home-page: https://github.com/Azure/azure-sdk-for-python
Author: Microsoft Corporation
Author-email: <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="26565250554e434a56664b4f455449554940520845494b" rel="noreferrer noopener nofollow">[email protected]</a>
License: MIT License
Location: /usr/local/lib/python2.7/dist-packages
Requires: azure-servicemanagement-legacy, azure-batch, azure-servicebus, azure-mgmt, azure-storage, azure-graphrbac

我尝试安装这个:pip install azure-mgmt-containerservice但是,现在出现以下错误:

Installed resource client version is 0.30.0rc5. The supported version is 1.1.0. Try pip install azure>=2.0.0 --upgrade

最佳答案

解决此问题的最简单方法是重新安装 ansible

pip install ansible[azure]

这将自动安装所有 azure 依赖项。目前,azure 2.0.0 中的软件包与 2.4.0.0 的 ansible 要求之间存在差异

ps。你的azure模块确实过时了。好像已经过时了 2 年。

关于python - 安装错误 : Do you have azure>=2. 0.0?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46779003/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com