I have a django project which it's been deployed to Elastic Beanstalk and i have to use xgboost in that. I cannot install xgboost via adding it to my requirements.txt file. I'm trying to build it on EC2 console. For this, I followed the steps below:
Firstly, i created a virtual environment and activated it.
After that, i added it to the python path.
And then, i installed git and gcc such as below.
yes | sudo yum install git
sudo yum install gcc72 gcc72-c++
Lastly, i clonned the xgboost from source.
When i run the make
command, i'm getting an error such as below:
/usr/include/c++/7/parallel/tags.h:36:10: fatal error: omp.h: No such file or directory #include <omp.h> ^~~~~~~
I'm using python3.6 and my gcc version is g++ (GCC) 7.2.1 20170915 (Red Hat 7.2.1-2)
How can i fix this?