Unfortunately, the full installation of GDAL and its relevant Python bindings is cumbersome, specifically on Windows platforms. The main difficulty is that that the version of Python-bindings should match the GDAL and Python installed version. A number of environment variables then need to be set correctly. There are already some third-party Python distributions that complete GDAL installation along with other libraries such as MapServer, OSGeo4W, and Anaconda. However, some extra packages will be installed using those third-party installers. In order to avoid installation of other unused packages, we have written an easy installer for Windows and a script for Mac/Unix users. These can be downloaded from the following links.
Please note that if you are using our Windows installer, there is no need to set the environment variables manually. Otherwise, you need to point to the gdal directory from PATH variable and also add GDAL_DATA and GDAL_DRIVER variables as explained here. For Mac/Unix users, we recommend using QGIS or GDAL complete to install GDAL Python bindings. Likewise the PATH variable needs to include GDAL directory path. Open a terminal and exectue the following command:
export PATH=/Library/Frameworks/GDAL.framework/Programs:$PATH
- Windows GDAL Bundler Installer
- Linux script