2017-10-16 10 views
2

我收到以下错误,当我运行ansible剧本:错误:您是否安装了azure> = 2.0.0?

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] 

天青:

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: [email protected] 
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

解决这个问题

回答

2

最简单的方法是重新安装ansible与

pip install ansible[azure] 

这会自动安装所有蔚蓝的依赖。目前azure 2.0.0中的软件包与2.4.0.0的软件需求之间存在差异

ps。你的天蓝色模块真的过时了。像2年过时了。

+0

我运行了给定的命令。错误:'您是否安装了azure> = 2.0.0?试试'pip install'azure> = 2.0.0'--upgrade' - 没有名为azure.mgmt.network.models的模块 –

+0

Azure模块过时意味着你正在讨论'rc5'? –

+1

只是删除它(天蓝色模块),你可能无法从rc5更新。 – 4c74356b41

相关问题