title: Install gdal using conda?
body: <p>I used</p>
  
  <pre class="lang-sh prettyprint-override"><code>conda install gdal
  </code></pre>
  
  <p>to install the GDAL packages. But I had the following error when importing the packages.</p>
  
  <pre><code>&gt;&gt;&gt; from osgeo import gdal
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
    File "/Users/danqing0703/anaconda/lib/python2.7/site-packages/osgeo/__init__.py", line 21, in &lt;module&gt;
      _gdal = swig_import_helper()
    File "/Users/danqing0703/anaconda/lib/python2.7/site-packages/osgeo/__init__.py", line 17, in swig_import_helper
      _mod = imp.load_module('_gdal', fp, pathname, description)
  ImportError: dlopen(/Users/danqing0703/anaconda/lib/python2.7/site-packages/osgeo/_gdal.so, 2): Library not loaded: libgdal.20.dylib
    Referenced from: /Users/danqing0703/anaconda/lib/python2.7/site-packages/osgeo/_gdal.so
    Reason: image not found
  &gt;&gt;&gt; from osgeo import ogr
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
    File "/Users/danqing0703/anaconda/lib/python2.7/site-packages/osgeo/__init__.py", line 21, in &lt;module&gt;
      _gdal = swig_import_helper()
    File "/Users/danqing0703/anaconda/lib/python2.7/site-packages/osgeo/__init__.py", line 17, in swig_import_helper
      _mod = imp.load_module('_gdal', fp, pathname, description)
  ImportError: dlopen(/Users/danqing0703/anaconda/lib/python2.7/site-packages/osgeo/_gdal.so, 2): Library not loaded: libgdal.20.dylib
    Referenced from: /Users/danqing0703/anaconda/lib/python2.7/site-packages/osgeo/_gdal.so
    Reason: image not found
  </code></pre>
  
  <p>What should I do to have GDAL imported in Python?</p>