【求助】gdal安装问题

14 views
Skip to first unread message

zmd...@sina.com

unread,
Mar 8, 2009, 6:39:19 AM3/8/09
to gdal+python+GIS+geosings论坛
安装gdal几次都是没有成功,安装了之后,输入:
import gdal
总是出现:
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import gdal
File "C:\Python25\lib\site-packages\gdal.py", line 191, in <module>
import _gdal
ImportError: No module named _gdal
>>>
这是怎么回事啊,

系统安装过程中曾出现过几个文件找不到:
F:\boy's\kaiyuan\gdal-1.4.1\frmts>copy aaigrid\frmt_*.html C:\GDAL
\html
aaigrid\frmt_*.html
系统找不到指定的文件。
已复制 0 个文件。

我是在vc6.0环境下安装的,gdal版本为1.4,打算安装在C盘根目录下,python版本为2.5,安装路径也是C盘根目录,gdal中
nmake.opt文件已修改了,主要修改部分为:
GDAL_HOME = C:\GDAL
BINDIR = $(GDAL_HOME)\bin
PY_INST_DIR = C:\Python25\Lib\site-packages
LIBDIR = $(GDAL_HOME)\lib
INCDIR = $(GDAL_HOME)\include
DATADIR = $(GDAL_HOME)\data
HTMLDIR = $(GDAL_HOME)\html

# Set this to the installed directory containing python. If you don't
# have python just let it point to a directory that does not exist (as
now).
PYDIR = "C:\Python25"


请大侠指导!

郑州学生

zmd...@sina.com

unread,
Mar 8, 2009, 6:41:11 AM3/8/09
to gdal+python+GIS+geosings论坛
是不是还有哪个部分要修改啊

linux23...@gmail.com

unread,
Mar 8, 2009, 11:01:28 AM3/8/09
to gdal+python+GIS+geosings论坛
把C:\Python25\Lib\site-packages下的_gdal.dll改成_gdal.pyd,Python2.5不认识dll的扩
展!

zmd...@sina.com

unread,
Mar 9, 2009, 1:15:16 AM3/9/09
to gdal+python+GIS+geosings论坛
好了!多谢lilin大侠!!!

On 3月8日, 下午11时01分, "linux23maill...@gmail.com"

> > 郑州学生- 隐藏被引用文字 -
>
> - 显示引用的文字 -

Reply all
Reply to author
Forward
0 new messages