The stackoverflow suggestion of --pre produced this:
ubuntu@ip-172-31-11-169:~$ sudo pip install --pre xgboost
Downloading/unpacking xgboost
Downloading xgboost-0.4a13.tar.gz (690kB): 690kB downloaded
Running setup.py (path:/tmp/pip_build_root/xgboost/setup.py) egg_info for package xgboost
xgboost/build-python.sh: 13: xgboost/build-python.sh: pushd: not found
make: *** No rule to make target python'. Stop. ----------------------------- Building multi-thread xgboost failed Start to build single-thread xgboost make: *** No rule to make target
clean'. Stop.
make: *** No rule to make target `python'. Stop.
Successfully build single-thread xgboost
If you want multi-threaded version
See additional instructions in doc/build.md
xgboost/build-python.sh: 26: xgboost/build-python.sh: popd: not found
(None, None)
Traceback (most recent call last):
File ', line 17, in
File '/tmp/pip_build_root/xgboost/setup.py', line 20, in
import xgboost
File './xgboost/init.py', line 8, in
from .core import DMatrix, Booster
File './xgboost/core.py', line 78, in
_LIB = _load_lib()
File './xgboost/core.py', line 72, in _load_lib
lib = ctypes.cdll.LoadLibrary(lib_path[0])
File '/usr/lib/python2.7/ctypes/init.py', line 443, in LoadLibrary
return self._dlltype(name)
File '/usr/lib/python2.7/ctypes/init.py', line 365, in init
self._handle = _dlopen(self._name, mode)
OSError: /tmp/pip_build_root/xgboost/xgboost/./wrapper/libxgboostwrapper.so: invalid ELF header
Complete output from command python setup.py egg_info:
xgboost/build-python.sh: 13: xgboost/build-python.sh: pushd: not found
make: *** No rule to make target `python'. Stop.
If you want to run XGBoost process in parallel using the fork backend for joblib/multiprocessing, you must build XGBoost without support for OpenMP by ``make no_omp=1``. Otherwise, use the forkserver (in Python 3.4) or spawn backend. Note you can install python libraries like xgboost on your system using pip install xgboost on cmd. Pip install xgboost If you have issues installing XGBoost, check the XGBoost installation documentation. If you plan to use Dask for parallel training, make sure to install dask[delay] and dask_ml.
Building multi-thread xgboost failed
Start to build single-thread xgboost
make: *** No rule to make target `clean'. Stop.
make: *** No rule to make target `python'. Stop.
Successfully build single-thread xgboost
If you want multi-threaded version
See additional instructions in doc/build.md
xgboost/build-python.sh: 26: xgboost/build-python.sh: popd: not found
(None, None)
Traceback (most recent call last):
Python Pip Install Windows
File ', line 17, in
File '/tmp/pip_build_root/xgboost/setup.py', line 20, in
File './xgboost/init.py', line 8, in
File './xgboost/core.py', line 78, in
File './xgboost/core.py', line 72, in _load_lib
File '/usr/lib/python2.7/ctypes/init.py', line 443, in LoadLibrary
File '/usr/lib/python2.7/ctypes/init.py', line 365, in init
Pip Install Xgboost
Pip Install Xgboost Windows Folder
OSError: /tmp/pip_build_root/xgboost/xgboost/./wrapper/libxgboostwrapper.so: invalid ELF header
Python Pip Install
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_root/xgboost
Storing debug log for failure in /home/ubuntu/.pip/pip.log
ubuntu@ip-172-31-11-169:~$