Spatial Libraries in Python 3: A Working Set-up for Windows

Lauren Oldja
3 min readFeb 12, 2018

Get started with open-source spatial analysis in Python can be tricky. For one, there’s many possible libraries from which to choose, of varying and overlapping functionality but not enough cross-compatibility. Piecemeal and sparse documentation also remains a challenge, and most top blog posts for common questions on Google I’ve found to be using older code conventions.

This two-part article aims to get you started in an geodata-stack that is modern and works. Part One (below) will walk you through installation on Windows. Part Two more or less follows the example of Andrew Gadius’ blog on the same topic to give a real world example of downloading shapefile ZIPs from the web, but updates the code to more modern standards and dependencies that work with Python 3.

Getting installations to work in Windows can be a minefield, but just for fun let’s do it anyway using Windows 8 Pro, and I will assume you have Anaconda for Python 3 installed. For reference, any code you see that looks like > this should be entered into your local Anaconda command prompt. (Find this pressing Windows key-R then typing Anaconda command prompt.)

Preparing your environment

To get your installation working properly, the best thing to do is to start fresh in a new environment…

--

--