Ubuntu 18.04 Python安装GDAL组件
更新ubuntu apt源
sudo apt-get update
安装依赖库
sudo apt-get install gdal-bin
sudo apt-get install libgdal-dev
设置临时环境变量
export CPLUS_INCLUDE_PATH=/usr/include/gdal
export C_INCLUDE_PATH=/usr/include/gdal
查看gdal版本
gdalinfo --version
安装
pip3 install GDAL==version