Unable to install GDAL on Windows 7 64-bit (Python 3.4.4 32-bit)

Asked 2 years ago, Updated 2 years ago, 35 views

What do you want to do

I would like to install GDAL on Windows 7 64-bit.

Prerequisite

·Python 3.4.4 32-bit (In order to work with other software, 32-bit version is required instead of 64-bit version)
·Visual Studio C++ 2010 Re-replaceable Package
·GDAL is obtained from the following
http://download.gisinternals.com/sdk/downloads/release-1600-gdal-2-2-3-mapserver-7-0-7/mapserver-7.0.7-1600-core.msi
http://download.gisinternals.com/sdk/downloads/release-1600-gdal-2-2-3-mapserver-7-0-7/GDAL-2.2.3.win32-py3.4.msi

·Conduct the following three settings for environmental variables
-Path
- Gdal-data
- Gdal-driver-path

Problems/Error Messages you are experiencing

===========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, inswig_import_helper
 _mod=imp.load_module('_gdal', fp, pathname, description)
 File "C:\Python34_32bit\lib\imp.py", line243, inload_module
 return load_dynamic(name, filename, file)
 ImportError: DLL load failed: The specified procedure could not be found. 

Supplementary information (such as FW/Tool version)

Install Python 3.4.4 64bit on another PC (Windows 7 64bit) to check for errors. Other than that, after performing the installation under the same conditions, I was able to confirm that it worked properly.
I'm checking.

python python3

2022-09-30 18:41

2 Answers

Since the path configuration was set to read dll with the same name as the dll prepared by the GDAL, the configuration was reviewed and resolved to refer to the dll prepared by the GDAL.Thank you very much.


2022-09-30 18:41

Using the debugger to place the breakpoint in the error message, "C:\Python34_32bit\lib\imp.py", line243, will find the location of the DLL file that failed to load, and you may find the cause by matching the settings with it.

If that's troublesome, why don't you try using Unofficial Windows Binaries for Python Extension Packages?Installation is easy because it contains the necessary binaries.

·GDAL


2022-09-30 18:41

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.