Installing PySAL for OSGeo4W

Update 2017: Please follow the instructions on the OSGeo4W website:

Update 2015: I now recommend this workflow based on Nathan’s post on installing Python setup tools:

  1. Download
  2. Run python in your OSGeo4W shell
  3. Run easy_install pysal in your OSGeo4W shell

Original post:

Today’s post is a summary of how to install PySAL on Windows for OSGeo4W Python.

The most important resource was

In the OSGeo4W Shell run:

C:\Users\anita_000\Desktop>curl | python

Update: Note that has gone down since I posted this. See for more info.

Then download to the Desktop and run:


When pip is ready, install PySAL:

C:\Users\anita_000\Desktop>pip install pysal

Test the installation:

Python 2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)] on win 32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pysal
1 comment
%d bloggers like this: