当我运行ansible剧本时,我会遇到以下错误:
您安装了azure>=2.0.0吗?尝试
pip install 'azure>=2.0.0' --upgrade-没有名为容器服务的模块
不可接受的版本:
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: ptvshelp@microsoft.com
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,但是,下面的错误来了:
已安装的资源客户端版本为0.30.0rc5。支持的版本为1.1.0。试试
pip install azure>=2.0.0 --upgrade
发布于 2017-10-16 21:04:04
解决这个问题的最简单的方法是用
pip install ansible[azure]这将自动安装所有的天蓝色依赖项。目前,azure 2.0.0中的软件包与2.4.0.0的不可接受要求之间存在差异。
ps。你的天蓝色模块已经过时了。已经过时两年了。
https://stackoverflow.com/questions/46779003
复制相似问题