title: xgboost could not be loaded In Mac
body: <p>I am trying to run below code. Which is the GitHub code of <a href="https://github.com/krishnaik06" rel="nofollow noreferrer">https://github.com/krishnaik06</a>.</p>
  <p>The link of jupyter notebook is given below.</p>
  <p><a href="https://github.com/krishnaik06/Credit_Card-Risk-assessment/blob/master/Credit%20Card%20Risk%20Assessment.ipynb" rel="nofollow noreferrer">https://github.com/krishnaik06/Credit_Card-Risk-assessment/blob/master/Credit%20Card%20Risk%20Assessment.ipynb</a></p>
  <p>Where I was not able to load xgboost</p>
  <p>Tried to run below cell, it is showing some error.</p>
  <pre><code>## Hyperparameter optimization using RandomizedSearchCV
  from sklearn.model_selection import RandomizedSearchCV, GridSearchCV
  import xgboost
  </code></pre>
  <p>Error:</p>
  <pre><code>---------------------------------------------------------------------------
  XGBoostError                              Traceback (most recent call last)
  &lt;ipython-input-11-60e28ccb95f6&gt; in &lt;module&gt;
        1 ## Hyperparameter optimization using RandomizedSearchCV
        2 from sklearn.model_selection import RandomizedSearchCV, GridSearchCV
  ----&gt; 3 import xgboost
  
  ~/opt/anaconda3/lib/python3.8/site-packages/xgboost/__init__.py in &lt;module&gt;
        7 import os
        8 
  ----&gt; 9 from .core import DMatrix, DeviceQuantileDMatrix, Booster
       10 from .training import train, cv
       11 from . import rabit  # noqa
  
  ~/opt/anaconda3/lib/python3.8/site-packages/xgboost/core.py in &lt;module&gt;
      171 
      172 # load the XGBoost library globally
  --&gt; 173 _LIB = _load_lib()
      174 
      175 
  
  ~/opt/anaconda3/lib/python3.8/site-packages/xgboost/core.py in _load_lib()
      154     if not lib_success:
      155         libname = os.path.basename(lib_paths[0])
  --&gt; 156         raise XGBoostError(
      157             'XGBoost Library ({}) could not be loaded.\n'.format(libname) +
      158             'Likely causes:\n' +
  
  XGBoostError: XGBoost Library (libxgboost.dylib) could not be loaded.
  Likely causes:
    * OpenMP runtime is not installed (vcomp140.dll or libgomp-1.dll for Windows, libomp.dylib for Mac OSX, libgomp.so for Linux and other UNIX-like OSes). Mac OSX users: Run `brew install libomp` to install OpenMP runtime.
    * You are running 32-bit Python on a 64-bit OS
  Error message(s): ['dlopen(/Users/danishali/opt/anaconda3/lib/python3.8/site-packages/xgboost/lib/libxgboost.dylib, 6): Library not loaded: /usr/local/opt/libomp/lib/libomp.dylib\n  Referenced from: /Users/danishali/opt/anaconda3/lib/python3.8/site-packages/xgboost/lib/libxgboost.dylib\n  Reason: image not found']
  </code></pre>
  <p>What I tried:</p>
  <ol>
  <li>Unninstalled anaconda</li>
  <li>Insatlled anaconda with 64 bit python.</li>
  </ol>
  <p>Still the same error</p>