在用python获取城市边界坐标时候,导出shapely总是出错,pip3 install shapely报错

找了很多,没有解决mac问题的,后再在知乎终于找到安装GEOS的类似问题,用于解决
首先,终端执行 ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
然后 brew install geos(没有安装homebrew,请自行先安装homebrew)
然后 export GEOS_DIR=/usr/local/Cellar/geos/3.6.1
最后执行 pip3 install shapely就ok啦
网友评论