[GIS] Import GDAL Error

gdalpython

I'm trying to import GDAL to run in 64-bit spyder and am getting the following error:
import gdal
Traceback (most recent call last):

  File "<ipython-input-1-27bf4694dd2b>", line 1, in <module>
    import gdal

  File "C:\Users\Rdebbout\AppData\Local\Continuum\Anaconda\Lib\site-packages\gdal.py", line 2, in <module>
    from osgeo.gdal import deprecation_warn

  File "C:\Users\Rdebbout\AppData\Local\Continuum\Anaconda\Lib\site-packages\osgeo\__init__.py", line 32, in <module>
    _gdal = swig_import_helper()

  File "C:\Users\Rdebbout\AppData\Local\Continuum\Anaconda\Lib\site-packages\osgeo\__init__.py", line 28, in swig_import_helper
    _mod = imp.load_module('_gdal', fp, pathname, description)

 ImportError: DLL load failed: The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail.

I downloaded gdal as a wheel file from gohlke's website and then used pip install GDAL-1.11.3-cp27-none-win_amd64.whl.

Best Answer

There is a problem with version 2.0. You can try installing a previous version conda install gdal=1.11.2 For more information see: https://github.com/ContinuumIO/anaconda-issues/issues/400

Related Question