简体   繁体   中英

How to install python geopandas properly?

I am trying to install geopandas. So, I downloaded all the required dependencies first(GDAL, pyproj, fiona, shapely). I was able to install GDAL and shapely using pip without any issue but for fiona and pyproj I am getting these following error,

ERROR: Could not find a version that satisfies the requirement certifi (from pyproj) (from versions: none)
ERROR: No matching distribution found for certifi

Any reason why I would be getting these error? I have python version 3.10 and windows 10, so for all those dependencies I downloaded python 310 version.

Format of installing: pip install pyproj-3.3.0-cp310-cp310-win_amd64.whl

Appreciate any help. Thanks.

I ran into a similar issue. Conda works fine, but with pip you usually hit compiler issues.

Here's the steps I took:

  1. Download GDAL, Fiona, and shapely pre-compiled libraries from https://www.lfd.uci.edu/~gohlke/pythonlibs/ . Use Ctrl+F to find them, download the wheels to your code directory (or use pipwheel to install with @ ). Make sure you use the correct Python version and 32/64 bit versions.
  2. Install shapely, Fiona, GDAL with pip if not using pipweel
  3. pip install munch, folium, pygeos, geopandas

This should get you up and running. I advise you to first create a virtual environment in which you install the packages!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM