尝试在Windows XP上为Python 2.7.3导入gdal:
>>> import gdal
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python27\lib\site-packages\gdal.py", line 2, in <module>
from osgeo.gdal import deprecation_warn
File "C:\Python27\lib\site-packages\osgeo\__init__.py", line 21, in <mo
_gdal = swig_import_helper()
File "C:\Python27\lib\site-packages\osgeo\__init__.py", line 17, in swit_helper
_mod = imp.load_module('_gdal', fp, pathname, description)
ImportError: DLL load failed: The specified procedure could not be found.
是否遵循在Windows上使用Python安装GDAL的建议?在其他地方,这是我到目前为止所做的:
- 删除了所有版本的python并从2.7.3的全新安装开始
- 使用OSGeo4W安装程序安装了gdal
- 从http://www.lfd.uci.edu/~gohlke/pythonlibs/安装了本地Win gdal二进制文件
C:\OSGeo4W\bin;
首先在我的Path
变量中添加- 试过了
from osgeo import gdal
- 从OSGeo4W Shell中启动了python
- 运行http://cartometric.com/blog/2011/10/17/install-gdal-on-windows/中概述的过程
结果是一样的。关于如何解决此问题的其他想法?
from osgeo
。