Skip to main content

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

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 and 1.11.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

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

from osgeo import gdal

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

pygdal-1.9.2.1.tar.gz (308.1 kB view details)

Uploaded Source

File details

Details for the file pygdal-1.9.2.1.tar.gz.

File metadata

  • Download URL: pygdal-1.9.2.1.tar.gz
  • Upload date:
  • Size: 308.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pygdal-1.9.2.1.tar.gz
Algorithm Hash digest
SHA256 92ede073244d5da6085f279f01113a1da3306ef2c26086b644e78aef69e1b1eb
MD5 f8ddff40ffe3aaea088e9de174a88b21
BLAKE2b-256 5e8d2b9c0bcc81a57c870f744ac0303d120d3121cf0c120b8b851c6ba0ad0a31

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page