Python 属性错误:';模块';对象没有属性';移动';

Python 属性错误:';模块';对象没有属性';移动';,python,ansible,Python,Ansible,我正在尝试安装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-package

我正在尝试安装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'
回溯(最近一次呼叫最后一次):
文件“/usr/bin/ansible”,第44行,在
将ansible.constants导入为C
文件“/usr/lib/python2.7/dist packages/ansible/constants.py”,第26行,在
来自ansible.compat.6个导入字符串类型
文件“/usr/lib/python2.7/dist-packages/ansible/compat/six/__-init___.py”,第40行,在
不是hasattr(_system_six.moves,'shlex_quote')或
AttributeError:“模块”对象没有属性“移动”

Ansible还很年轻,操作系统打包也落后了。尽管此特定错误可能只是由版本不匹配或缺少依赖项引起的


我可以建议吗?

如果改为通过pip安装Ansible,会发生什么情况?可能是Debian包缺少Python依赖项。您使用的发行版和版本是什么?你在听吗?@ydaetskcoR我目前与pip有问题,但我会向你汇报。上次好像没用。@XiongChiamiov我正在通过Crouton运行可靠的Ubuntu你试过了吗?