Search code examples
pythonpython-2.7ubuntu-16.04xgboostensemble-learning

"version `GOMP_4.0' not found" when xgboost imported in python - Ubuntu


HiI have installed the xgboost using the the following link for the Ubuntu 16.04.1 LTS Platform

http://xgboost.readthedocs.io/en/latest/python/python_intro.html

when I run the following command in the python terminal it throws as exception as shown the following screenshot

import xgboost as xg

enter image description here

any kind of help would be greatly appreciated

I also have tried the following commands but no luck

===================================================================

sudo apt-get install make

sudo apt-get update

sudo apt-get install gcc

sudo apt-get install g++

sudo apt-get install git

sudo git clone https://github.com/dmlc/xgboost

cd xgboost

sudo ./build.sh

cd python-package

sudo /home/username/anaconda2/bin/python setup.py install

===================================================================

Thanks for ur time...


Solution

  • It is kind of late answer, but for future people coming here. I have faced the very same problem, but for XGBoost on Java. It turns out libgomp is required. On Debian it just took an apt-get install -y libgomp1 and it worked.