title: How to install Bloomberg API Library for Python 2.7 on Mac OS X
body: <p>I'm trying to setup my Mac OS X system to use the <code>pdblp</code> Python library which requires me to first install the <a href="https://www.bloomberglabs.com/api/libraries/" rel="noreferrer">Bloomberg Open API libary for Python</a>. After cloning the git repo and running <code>python setup.py install</code>, I get </p>
  
  <pre><code>File "setup.py", line 20, in &lt;module&gt;
    raise Exception("BLPAPI_ROOT environment variable isn't defined")
  Exception: BLPAPI_ROOT environment variable isn't defined
  </code></pre>
  
  <p>How should I proceed?</p>