title: Python: why do I get an error when I call osgeo on mac?
body: <p>I try to import <code>ogr</code> from <code>osgeo</code></p>
  
  <pre><code>from osgeo import ogr
  </code></pre>
  
  <p>but I get the following error</p>
  
  <pre><code>ModuleNotFoundError: No module named 'osgeo'
  </code></pre>
  
  <p>Before I installed <code>GDAL</code>, if I do:</p>
  
  <pre><code>pip3 install gdal
  Requirement already satisfied: gdal in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (2.4.1)
  
  which pip
  /anaconda3/bin/pip
  
  which python
  /anaconda3/bin/python
  </code></pre>