admin管理员组

文章数量:1531990

问题描述

在gdal正确安装,且环境变量已正确设置的情况下,可能会出现gdalinfo、gdalwarp等命令可以正常使用,而gdal_merge.py或gdal_calc.py等函数报错“ImportError: DLL load failed”的情况,非常蛋疼。

解决方案

经过一番搜索,找到了如下的解决办法:

I recommend to place the path to GDAL in the PATH variable BEFORE(!!) the python path. In this way you avoid the fact that python can not find the necessary gdal.dlls.

本文标签: 解决办法错误ImportErrorGdalfailed