Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Virtualenv and setuptools friendly version of standard GDAL python bindings

Project Description

Virtualenv and setuptools friendly version of standard GDAL python bindings.

This package is for you if you had problems installing GDAL in your virtualenv. You can install GDAL into your virtualenv using this package but you still need to install GDAL library and its header files on your system. On Ubuntu it can be done this way:

$ sudo apt-get install libgdal1-dev

Version of the same package, and GDAL, so that if you have installed GDAL 1.8.1 you need to install the version 1.8.1 of this package:

$ gdal-config --version
1.8.1

$ git clone git@github.com:dezhin/pygdal.git
$ cd pygdal
$ virtualenv --no-site-packages env
$ env/bin/pip install 1.8.1/

Or you can install package directly from PyPi:

$ virtualenv --no-site-packages env
$ env/bin/pip install pygdal>=1.8.1.0,<=1.8.1.999

The trick with range of versions required to support pygdal versioning.

Only a small set of GDAL versions is currently supported. At this point they are: 1.8.1, 1.9.2, 1.10.0, 1.10.1, 1.11.0, 1.11.1, 1.11.2, 1.11.3, 1.11.4, 2.1.0, 2.1.1, 2.1.2, 2.1.3, 2.2.0 and 2.2.1. Package numpy is also listed as a dependency (using setup_requires and install_requires directives), so you do not need to install it before installing GDAL.

If you installed GDAL using the KyngChaos frameworks, you may need to override the default values returned by gdal-config --prefix in order to install this package. This can be accomplished by setting the GDALHOME environment variable, e.g.

$ export GDALHOME="/Library/Frameworks/GDAL.framework/Versions/Current/unix/"
$ env/bin/pip install pygdal>=1.8.1.0,<=1.8.1.999

After package is installed you can use is same way as standard GDAL bindings:

from osgeo import gdal
Release History

Release History

This version
History Node

2.2.1.3

History Node

2.2.0.3

History Node

2.1.3.3

History Node

2.1.2.3

History Node

2.1.1.3

History Node

2.1.0.3

History Node

2.0.3.3

History Node

2.0.2.3

History Node

2.0.1.3

History Node

2.0.0.3

History Node

1.11.5.3

History Node

1.11.4.3

History Node

1.11.3.3

History Node

1.11.2.3

History Node

1.11.2.2

History Node

1.11.2.1

History Node

1.11.1.3

History Node

1.11.1.2

History Node

1.11.1.1

History Node

1.11.1.0

History Node

1.11.0.3

History Node

1.11.0.2

History Node

1.11.0.1

History Node

1.11.0.0

History Node

1.10.1.3

History Node

1.10.1.2

History Node

1.10.1.1

History Node

1.10.1.0

History Node

1.10.0.3

History Node

1.10.0.2

History Node

1.10.0.1

History Node

1.10.0.0

History Node

1.9.2.3

History Node

1.9.2.2

History Node

1.9.2.1

History Node

1.9.2.0

History Node

1.8.1.3

History Node

1.8.1.2

History Node

1.8.1.1

History Node

1.8.1.0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
pygdal-2.2.1.3.tar.gz (427.5 kB) Copy SHA256 Checksum SHA256 Source Sep 6, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting