我正在尝试在我的 Windows 7 工作站上安装 GDAL 和 Python。
- Python 版本:2.6.6
- 格达尔 1.8
- (Visual Visual C++ Studio 2010 速成版)
我按照http://ucsb.pbworks.com/w/page/1936549/Using-GDAL-with-Python上的说明将 PYTHONPATH 和 GDAL_DATA 添加到我的系统环境变量中。此外,我通过添加 GDAL 二进制文件夹修改了我的 PATH 变量。
我从以下网址下载的 GDAL Python 绑定:http: //vbkto.dyndns.org/sdk/PackageList.aspx ?file=release-1600-gdal-1-8-mapserver-5-6.zip
“ from osgeo import gdal ” 导致以下错误消息:
Traceback (most recent call last):
File "<pyshell#2>", line 1, in <module>
from osgeo import gdal
File "C:\Python26\lib\site-packages\osgeo\__init__.py", line 21, in <module>
_gdal = swig_import_helper()
File "C:\Python26\lib\site-packages\osgeo\__init__.py", line 17, in swig_import_helper
_mod = imp.load_module('_gdal', fp, pathname, description)
ImportError: DLL load failed: Das angegebene Modul wurde nicht gefunden.
在此先感谢,