title: Installing Lightgbm on Mac with OpenMP dependency
body: <p>I'm new to python and would like to install <a href="https://lightgbm.readthedocs.io/en/latest/Quick-Start.html" rel="nofollow noreferrer">lightgbm</a> on my macbook. I did a <code>pip install lightgbm</code> and it said installation successful. However when I try to import that into my notebook I get the following error message:</p>
  
  <pre><code>../anaconda/envs/python3/lib/python3.6/ctypes/__init__.py in __init__(self, name, mode, handle, use_errno, use_last_error)
  342 
  343         if handle is None:
  --&gt; 344             self._handle = _dlopen(self._name, mode)
  345         else:
  346             self._handle = handle
  
  OSError: dlopen(../anaconda/envs/python3/lib/python3.6/site-packages/lightgbm/lib_lightgbm.so, 6): Library not loaded: /usr/local/opt/gcc/lib/gcc/7/libgomp.1.dylib
  Referenced from: ../anaconda/envs/python3/lib/python3.6/site-packages/lightgbm/lib_lightgbm.so
  Reason: image not found
  </code></pre>
  
  <p>The documentation on lightgbm website gives a different installation guideline using <code>brew install...</code>. My question is whether I have to do a brew install? If that's the case why the pip installation shows successful installation then?</p>