Installing GDAL in a Python virtual environment Get gdal development libraries: $ sudo apt-add-repository ppa:ubuntugis/ubuntugis-unstable $ sudo apt-get update $ sudo apt-get install libgdal-dev Create and activate a virtual environment: