标签: python gdal osgeo
我尝试从ogr导入osgeo
ogr
osgeo
from osgeo import ogr
但出现以下错误
ModuleNotFoundError: No module named 'osgeo'
在安装GDAL之前,如果我这样做:
GDAL
pip3 install gdal Requirement already satisfied: gdal in /usr/local/lib/python3.7/site-packages (2.4.0)
答案 0 :(得分:0)
在运行pip3 install gdal之前,请尝试安装the complete GDAL package for Mac from this site。
pip3 install gdal