I am trying to use osgeo/gdal with Anaconda, but am failing to import osgeo or gdal when attempting to use a custom Anaconda environment.
I have created a new Anaconda environment that can utilize arcpy using the following command conda create -n arc1041 python=2.7.10 numpy=1.9.2 matplotlib=1.4.3 scipy=0.16.0 pandas pyparsing xlrd xlwt console_shortcut
However, when I open up the new environment, arc1041, with the anaconda prompt, I can't import osgeo and gdal. And, when I try to use Spyder as the IDE, I can't import gdal. I get an error message stating
File "C:\Users\RDCERWAW\AppData\Local\Continuum\anaconda2\envs\arc1041\lib\site-packages\osgeo\__init__.py", line 21, in swig_import_helper _mod = imp.load_module('_gdal', fp, pathname, description) ImportError: DLL load failed: The specified module could not be found.
Within the default Anaconda environment, I can import osgeo/gdal at both the command prompt and when using Spyder. I have appended the sys.paths from the default environment into the arc1041 environment, but this doesn't help.
Not sure how to proceed with running Anaconda/Spyder that has both ArcPy and osgeo/gdal capabilities.