美文网首页
mac python3 下安装shapely

mac python3 下安装shapely

作者: e6413cca205a | 来源:发表于2018-01-28 17:44 被阅读0次

    在用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啦

    相关文章

      网友评论

          本文标题:mac python3 下安装shapely

          本文链接:https://www.haomeiwen.com/subject/hydzaxtx.html