Install GDAL on Linux 2021

Table of Content

Install GDAL on Linux 2021

sudo apt-add-repository ppa:ubuntugis/ubuntugis-unstable
sudo apt-get update
sudo apt-get install libgdal-dev

Or after install gdal using these steps on host:

sudo apt-get install gdal-bin
sudo apt-get install libgdal-dev libgdal1h


pip install GDAL==$(gdal-config --version) --global-option=build_ext --global-option="-I/usr/include/gdal"

Leave a Reply

Your email address will not be published. Required fields are marked *