EC2 外部清单脚本因 ImportError 而失败:没有名为 ansible.module_utils 的模块

kag*_*kij 0 python boto ansible-inventory

我的 Mac 运行的是 macOS 10.13、python 2.7.13 和 3.6.2

Ansible 是 2.3.1.0 - http://prntscr.com/grjh34

当我尝试运行 EC2 外部清单脚本时,出现ImportError: No module named ansible.module_utils - http://prntscr.com/grjhoq

如何修复?

kag*_*kij 5

我已经删除了用brew安装的Ansible,并用pip安装了它,这成功了,现在一切都按预期工作了