title: How to read CDF file with python on mac?
body: <p>I have installed spacepy using the following command (MacOS Mojave):</p>
  
  <pre><code>pip install git+https://github.com/spacepy/spacepy.git
  </code></pre>
  
  <p>But I keep getting this error while trying to <code>from spacepy import pycdf</code>:</p>
  
  <blockquote>
    <p>Exception: Cannot load CDF C library; checked . Try 'os.environ["CDF_LIB"] = library_directory' before import.</p>
  </blockquote>
  
  <p>I have tried following <a href="https://pythonhosted.org/SpacePy/install_mac.html#spacepy" rel="nofollow noreferrer">the directions from their website</a>, but it seems like those directions are a bit outdated.</p>