2016-09-15 42 views
3

我想安裝Ansible,但由於某種原因,我永遠無法獲得乾淨的安裝。使用apt-get install ansible,然後做一個ansible --version我得到以下輸出:AttributeError:'模塊'對象沒有任何屬性'移動'

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

如果您通過pip安裝Ansible,會發生什麼情況?可能是Debian軟件包在某處丟失了一個Python依賴項。 – ydaetskcoR

+0

你使用什麼發行版和版本?你是按照[安裝說明](https://docs.ansible.com/ansible/intro_installation.html)? –

+0

@ydaetskcoR我目前有點問題,但我會回報。它上次似乎沒有工作。 – Jfach

回答

0

Ansible還很年輕和OS包裝相對滯後。雖然這個特定的錯誤可能只是由版本不匹配或缺失依賴造成的。

我可以建議running Ansible from source

相關問題