Having problems to use the latest Conda / GDAL on Windows? Here’s the solution.

Hi GEONETCasters,

During a capacity building event on the last week we had some problems when trying to use the latest version of the conda-forge gdal on Windows machines.

When executing Python scripts that use the remap function, the following error appeared:

ImportError: DLL load failed: The specified module could not be found.

This seems to be an incompatibility between the latest version of conda and vs2015_runtime and conda-forge gdal (please check this link).

In order to solve this, please install gdal using the following command:

conda install -c conda-forge gdal vs2015_runtime=14

After that, use the following command to update qt (if you don’t do that, Spyder will not launch. Reference here.):

conda upgrade qt

To summarize, in order to play with NetCDF files and Python, these are the commands you should use:

conda install -c conda-forge netcdf4
conda install -c conda-forge basemap
conda install -c conda-forge gdal vs2015_runtime=14
conda upgrade qt

Stay tuned for News!