关于Ubuntu Python GDAL库 import 失败的问题
使用pip install gdal失败,使用conda install gdal安装成功但是import失败
此时可以run one of the following
conda install -c conda-forge gdal
conda install -c conda-forge/label/cf202003 gdal
conda install -c conda-forge/label/gcc7 gdal
conda install -c conda-forge/label/broken gdal
conda install -c conda-forge/label/TEST gdal
conda install -c conda-forge/label/cf201901 gdal
然后再
import gdal
如果import失败,可更改为
import osgeo.gdal as gdal #在百度Ai studio上亲测有效
供大家参考