Getting "ImportError: No Module named yaml" error
<p>Computer: MacBook Pro mid 2012, running El Capitan 10.11.4</p>

<p>Python version 2.7.10</p>

<p>I've been trying to install ansible from source, and I've run these two commands (following the steps on ansibles documentation):</p>

<pre><code>git clone git://github.com/ansible/ansible.git --recursive
cd ./ansible
</code></pre>

<p>and then ran this</p>

<pre><code>source ./hacking/env-setup
</code></pre>

<p>I've also already installed these packages</p>

<pre><code>sudo pip install paramiko PyYAML Jinja2 httplib2 six
</code></pre>

<p>However, if I try and run ansible by typing it in the terminal, I get the following error.</p>

<pre><code>Traceback (most recent call last):
File "/Users/[myusr]/rock/ansible/bin/ansible", line 81, in &lt;module&gt;
from ansible.cli.adhoc import AdHocCLI as mycli
File "/Users/[myusr]/rock/ansible/lib/ansible/cli/__init__.py", line 27, in &lt;module&gt;
import yaml
ImportError: No module named yaml
</code></pre>

<p>What should be done here?</p>