Apr 04, 2017 A Gentle Introduction to GDAL, Part 1. On a Mac, I’ve found the. Follow these instructions to install both Python 2.7 and GDAL 2.1 from the UCLA Institute for Digital Reseach.
![](/uploads/1/2/6/5/126541317/439632425.jpg)
Installing GDAL/OGR for Python on Windows is now even easier!
If you are doing Python development, you may be interested in my Windows Dev Stack, which describes my development environment from high level technologies down to specific apps, and how they all work together.
Christoph Gohlke, through his Unofficial Windows Binaries for Python Extension Packages, provides a number of libraries as Python Wheel files, which you can easily install to your desired Python… Unlike some other installers this installer includes GDAL, its data and the Python bindings all in the one installer.
Overview
1. Determine your desired Python install and version
2. Download the GDAL installer/bindings
3. Install
4. Notes
2. Download the GDAL installer/bindings
3. Install
4. Notes
1. Determine your desired Python install and version
![Python3 Python3](https://hackernoon.com/hn-images/1*qcumvBkuOKXFu83evbimKQ.png)
See the post on Locating Python and adding it to your system Path for information about how to find the Python install you wish to use (you do not need to add it to your system Path to continue with the steps below).
Once you have figured out which Python you are going to use, open the Python interpreter in your normal way (or double click on its python.exe). It will print version information at the top when it opens, for example:
Python 2.7.10 (default, May 23 2015, 09:40:32) [MSC v.1500 32 bit (Intel)] on win32
The important information is highlighted above: my version is Python 2.7 (the additional .10 is not important) and its architecture is 32 bit.
2. Download the GDAL installer/bindings
Go to http://www.lfd.uci.edu/~gohlke/pythonlibs/#gdal and select the appropriate download corresponding to your Python version. Unless you specifically need an older version you might as well download the latest GDAL version. The filename has the format:
So, based on the example above, I would download:
3. Install
Wheel files are installed using pip, a package manager for Python that is included in the default install. The syntax is (if the Python you want to install to is on your system path):
Otherwise:
The python -m pip command is the preferred means of accessing pip (compared to the older style of having pip on the path and calling it directly), as it is more clear which Python pip is installing to.
4. Notes
Test your install by opening Python and entering:
This should return nothing (meaning no errors).
![](/uploads/1/2/6/5/126541317/439632425.jpg)