【发布时间】:2021-06-04 11:01:59
【问题描述】:
我在 Ubuntu 18.04 上安装了 Ansible(在带有 WSL 的 Windows 上)。 Ansible 必须运行 playbook 来管理 Azure。当我尝试运行剧本(用于创建 VNET)时,出现错误:
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ModuleNotFoundError: No module named 'azure.common' fatal: [localhost]: FAILED! => {"changed": false, "msg": "Failed to import the required Python library (ansible[azure] (azure >= 2.0.0)) on XPS15's Python /usr/bin/python3. Please read the module documentation and install it in the appropriate location. If the required library is installed, but Ansible is using the wrong Python interpreter, please consult the documentation on ansible_python_interpreter"}
我尝试了不同的方法,例如以不同的方式安装 Ansible(也使用 pip)。安装不同版本的 Python。安装了不同版本的 Ubuntu。
【问题讨论】:
-
您是否尝试过安装
azure似乎丢失了?
标签: python azure ubuntu ansible