ImportError: No Module named yaml | Ansible

后端 未结 7 2026
隐瞒了意图╮
隐瞒了意图╮ 2021-01-01 13:30

Computer: MacBook Pro mid 2012, running El Capitan 10.11.4

Python version 2.7.10

I\'ve been trying to install ansible from source, and I\'ve run these two co

7条回答
  •  无人及你
    2021-01-01 14:24

    @bigdata2's answer is correct but it might also happen that there's a conflict with python 3. So, check pip version (pip --version) and if it outputs python 3 then:

    sudo python -m pip install pyyaml
    

    So it gets installed for the same version as python.

提交回复
热议问题