title: Why can't I find ansible when I install it using setup.py?
body: <p>Because I had some trouble with Ansible (I'm on mac) which seemed to be fixed in the latest dev version today I uninstalled ansible through pip (<code>sudo pip uninstall ansible</code>) and reinstalled the latest dev version from the github repo using the classic setup.py method, which seemed to end successfully (<a href="http://pasted.co/0a000255/fullscreen.php?hash=9ce9d12b8ea726b3473b62225c22f408&amp;toolbar=true&amp;linenum=false" rel="noreferrer">full output here</a>. </p>
  
  <p>So then I tried using it:</p>
  
  <pre><code>$ ansible --version
  -bash: ansible: command not found
  $ which ansible
  $
  </code></pre>
  
  <p>I checked where it is installed. From the full output I linked to above I found that it is installed in <code>/usr/local/lib/python2.7/site-packages</code>, and indeed in there I find an egg:</p>
  
  <pre><code>$ ls -l /usr/local/lib/python2.7/site-packages | grep ansible
  drwxr-xr-x    4 root    admin     136 Aug 22 16:33 ansible-2.4.0-py2.7.egg
  </code></pre>
  
  <p>When I start Python and check the site-packages folder I find a different folder:</p>
  
  <pre><code>&gt;&gt;&gt; import site; print site.getsitepackages()[0]
  /usr/local/Cellar/python/2.7.13_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages
  </code></pre>
  
  <p>but that is a symlink to the same folder:</p>
  
  <pre><code>$ ls -l /usr/local/Cellar/python/2.7.13_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages
  lrwxr-xr-x  1 hielke  admin  54 Aug 13 22:36 /usr/local/Cellar/python/2.7.13_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages -&gt; ../../../../../../../../../lib/python2.7/site-packages
  </code></pre>
  
  <p>So I guess the problem is that no symlink is created to the ansible package in <code>/usr/local/bin/</code>. But I'm unsure how I could create such a symlink and why it wouldn't appear in the first place.</p>
  
  <p>Does anybody know how I can move forward from here? All tips are welcome!</p>