环境:Centos7,包管理器conda,python3.6
(1)GDAL、GeoPandas、Shapely和PyShp安装
conda install gdal
conda install shapely
conda install -c conda-forge geopanda
conda install pyshp
(2)GeoJSON安装
[root@supervisor2 ~]# conda search geojson
Loading channels: done
PackagesNotFoundError: The following packages are not available from current channels:
- geojson
Current channels:
- https://repo.continuum.io/pkgs/main/linux-64
- https://repo.continuum.io/pkgs/main/noarch
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/linux-64
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/noarch
To search for alternate channels that may provide the conda package you're
looking for, navigate to
https://anaconda.org
and use the search bar at the top of the page.

本文介绍了在CentOS7环境下,使用conda和pip在Python3.6环境中安装GDAL、GeoPandas、Shapely、PyShp和GeoJSON的详细步骤。当conda无法找到geojson库时,通过修改pip配置并使用pip进行安装,同时提供了在Windows环境下安装GeoJSON的whl文件方法。
最低0.47元/天 解锁文章
1201

被折叠的 条评论
为什么被折叠?



