How to install Python XGBoost package in virtualenv on mac
<p>I have been trying to install Python 2.7 XGBoost on my mac. I am running a framework build of python via brew and trying to install into a virtualenv. I have tried the following methods:</p>

<ol>
<li>Manual build found here: <a href="https://github.com/dmlc/xgboost/blob/master/doc/build.md#python-package-installation" rel="nofollow">https://github.com/dmlc/xgboost/blob/master/doc/build.md#python-package-installation</a></li>
</ol>

<p>This results in this error:</p>

<pre><code>error: Error: setup script specifies an absolute path:

/Users/username/git/xgboost/python-package/xgboost/../../lib/libxgboost.so

setup() arguments must *always* be /-separated paths relative to the
setup.py directory, *never* absolute paths.
</code></pre>

<p>I was able to build xgboost, but I cant install the package. The docs discuss needing <code>disutils</code>, but I can't find it anywhere. I tried running on <code>disutils2</code>, but that didn't work.</p>

<ol start="2">
<li>pip install found here: <a href="https://pypi.python.org/pypi/xgboost/" rel="nofollow">https://pypi.python.org/pypi/xgboost/</a></li>
</ol>

<p>This results in this error:</p>

<pre><code>Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/jj/7r79983d7jvcz_1y6w2n5v2m0000gn/T/pip-build-l4ak5P/xgboost/
</code></pre>