How to install Python XGBoost package in virtualenv on mac

I am trying to install Python 2.7 XGBoost on my mac. I am running a python frame assembly through brew and trying to install in virtualenv. I tried the following methods:

This results in an error:

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.

I managed to create xgboost, but I can not install the package. Documents discuss the need disutils, but I cannot find it anywhere. I tried working on disutils2, but it did not work.

  1. pip install found here: https://pypi.python.org/pypi/xgboost/

This results in an error:

Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/jj/7r79983d7jvcz_1y6w2n5v2m0000gn/T/pip-build-l4ak5P/xgboost/
+4
source share
1

"include_package_data = True" setup.py. .: https://github.com/django-salesforce/django-salesforce/issues/19

+1

Source: https://habr.com/ru/post/1659293/


All Articles