

Type "help", "copyright", "credits" or "license" for more information. To see what you have you can run python on the command line and a message like this: C:\>python In my case I have a 64 bit windows, but a 32 bit python 2.7 (that shipped with ArcGIS). Note that this has to match your python version, not your OS. Now you have to choose between 32 and 64 bits and different Microsoft Visual C++ compiler versions. Take the link to "stable releases" to get to: I was able to install GDAL and use it in python following the steps outlined here (this is the link provided by sends you to. I find OSGEO4W a poor solution because it creates a whole parallel universe, almost like a virtual machine. Once installed packages can be updated from within the environment using: conda update gdal I've suggested installing from the conda-forge channel ( ) as they are very active in keeping their GDAL builds up to date and making sure they work against a lot of libraries.

Installing into a new environment is recommended to avoid conflicts with other packages and make sure the environmental variables required are set. Then activating it as shown when the command finishes. Once set up GDAL can be installed into a new environment using: conda create -n gdal_env -c conda-forge gdal You can get the full Anaconda distribution from: which contains a lot of Python packages aimed at 'data science' or a minimal installation from Īs part of the installation it will prompt you to add to the main path (so it is available from any terminal). On the other hand if you want to use Python in combination with a number of open-source remote sensing and GIS packages (GRASS, QGIS etc.,) OSGeo4W is probably the better option. If you are going to be doing a lot of work using GDAL with other Python packages (scipy, pandas, scikit-learn etc.,) this might be a better option than OSGeo4W. There is already a pair of pre-made batch files for debugging the OHRRPGCE.Another option is to install the Anaconda Python distribution which has packages for GDAL. Or you can create a batch file with the same command in it. From a command-line prompt, you can type:Ĭ:\mingw\bin\gdb.exe program_to_debug.exe (These instructions are for mingw32, not the mingw-w64 fork. You can get the latest mingw installer here which can in turn install gdb.Īfter installing MinGW, run the "MinGW Installation Manager" (which for me was located in C:\MinGW\libexec\mingw-get\guimain.exe ) and then make sure that the mingw32-gdb bin package is installed. MinGW distributes a Windows version of gdb. If you are using Linux, you probably already have gdb, but if you are using Windows, you will need to install it. When used together with gdb, it can provide useful information about crashes. The latest debug build of the OHRRPGCE is available here: ohrrpgce-wip-directx-sdl-debug.zip.
