安装gdal

在ubuntu下直接安装

apt-get install libgdal-dev

export CPLUS_INCLUDE_PATH=/usr/include/gdal/

export C_INCLUDE_PATH=/usr/include/gdal/

pip install GDAL==1.11.2

目前 pip install GDAL 会出错,必须加上 ==1.11.2。至于 ==1.11.3之类的没试过。

够用万岁。

虚拟环境安装

conda install -c conda-forge gdal
转载自:https://blog.csdn.net/u012359842/article/details/80198818

You may also like...