[gdal-dev] Installing the latest GDAL version on ubuntu 20.04

Thomas Gratier osgeo.mailinglist at gmail.com
Thu Mar 18 08:07:07 PDT 2021


Hi,

First, be sure to "pip3 install -U pip" to get latest pip as got some
issues with wheels build because was using outdated pip.

In https://pypi.org/project/GDAL/, there is a mention that gdal python
bindings have dependencies e.g

* libgdal (3.2.2 or greater) and header files (gdal-devel)
* numpy (1.0.0 or greater) and header files (numpy-devel) (not explicitly
required, but many examples and utilities will not work without it)

For 3.1, you will need libgdal 3.1 and headers files

The alternative to get a recent gdal without pain is to use conda to
install the latest version but I do not know the environment around e.g how
you need to link to others software you need to use

# With conda already installed
conda config --add channels conda-forge
conda create --name gdal_latest -y
conda activate gdal_latest
# get a list of available GDAL versions
conda search gdal --channel conda-forge
conda install -c conda-forge gdal==3.2.2 -y


Regards

Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20210318/a5e9c3f2/attachment.html>


More information about the gdal-dev mailing list