一、下载4个依赖库

从https://www.lfd.uci.edu/~gohlke/pythonlibs/下载Geopandas 依赖库:

  • Fiona;
    python3.5安装geopandas
  • GDAL;
    python3.5安装geopandas
  • Pyproj;
    python3.5安装geopandas
  • Shapely。
    python3.5安装geopandas

二、在命令行窗口安装上述依赖包

(一) 安装命令

pip install .whl文件所在位置(将文件直接拖拽到install后即可)。

(二)安装顺序

先安装GDAL、Pyproj和Shapely,最后安装Fiona。
python3.5安装geopandas

  • 安装GDAL,成功!
    python3.5安装geopandas
  • 安装Pyproj,成功!
    python3.5安装geopandas
  • 安装Shapely,成功!
    python3.5安装geopandas
  • 安装Fiona,出错!!!
    【错误分析】版本不兼容问题
    安装Fiona库时,它也需要安装一些其他库。我发现我们之前虽然安装了GDAL-2.4.1,但在安装Fiona时,它会先安装GDAL-3.0.2,但是由于未能成功安装,便出错了,故我猜测是由于GDAL与Fiona安装版本不兼容。
    【解决方案】
    先将原先安装的GDAL-2.4.1卸载;
    到https://www.lfd.uci.edu/~gohlke/pythonlibs/#gdal上下载GDAL-3.0.2并安装;
    重新安装Fiona,成功!
    python3.5安装geopandas
    python3.5安装geopandas
    python3.5安装geopandas
    python3.5安装geopandas

三、安装geopandas

python3.5安装geopandas

四、测试

python3.5安装geopandas

参考

相关文章: