[英]“ImportError: DLL load failed” when trying to use GDAL on Windows 7 64bit (Python 3.4.4 32bit)
What I would like to do 我想做什么
Installing GDAL on Windows7 64bit 在Windows7 64位上安装GDAL
Precondition 前提
GDAL is downloaded from the following site: GDAL是从以下站点下载的:
As for environment variables, I set the following three settings: 至于环境变量,我设置了以下三个设置:
Error message 错误信息
=========== RESTART: C:\Users\XXXX\Desktop\sample_program\sample.py ===========
Traceback (most recent call last):
File "C:\Users\XXXX\Desktop\sample_program\sample.py", line 2, in <module>
from osgeo import gdal, gdalconst
File "C:\Python34_32bit\lib\site-packages\osgeo\init.py", line 21, in <module>
_gdal = swig_import_helper()
File "C:\Python34_32bit\lib\site-packages\osgeo\init.py", line 17, in swig_import_helper
_mod = imp.load_module('_gdal', fp, pathname, description)
File "C:\Python34_32bit\lib\imp.py", line 243, in load_module
return load_dynamic(name, filename, file)
ImportError: DLL load failed: The specified procedure can not be found
I solved my problem. 我解决了我的问题。 GDAL does not work because GDAL refers dll file which other software made before.(The dll file other software made is same name as GDAL's dll).
GDAL不起作用,因为GDAL引用了以前其他软件制作的dll文件。(其他软件制作的dll文件与GDAL的dll同名)。 So, I fixed the dll path appropriately.Thanks.
因此,我适当地修复了dll路径。谢谢。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.