我正在尝试安装Ansible,但出于某种原因我永远无法进行全新安装。使用apt-get install ansible
然后执行ansible --version
我得到以下输出:
Traceback (most recent call last):
File "/usr/bin/ansible", line 44, in <module>
import ansible.constants as C
File "/usr/lib/python2.7/dist-packages/ansible/constants.py", line 26, in <module>
from ansible.compat.six import string_types
File "/usr/lib/python2.7/dist-packages/ansible/compat/six/__init__.py", line 40, in <module>
not hasattr(_system_six.moves, 'shlex_quote') or
AttributeError: 'module' object has no attribute 'moves'
答案 0 :(得分:0)
Ansible还很年轻,OS包装也落后了。虽然这个特定错误可能只是由版本不匹配或缺少依赖性引起的。
我可以建议running Ansible from source吗?