What I would like to do
Installing GDAL on Windows7 64bit
Precondition
GDAL is downloaded from the following site:
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). So, I fixed the dll path appropriately.Thanks.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.