ERROR: Command errored out with exit status 1 when install geopandas

created at 07-02-2021 views: 33

error message

ERROR: Command errored out with exit status 1:
     command: 'c:\python37\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\11931\\AppData\\Local\\Temp\\pip-install-yy0nccti\\fiona\\'"'"'; __file__='"'"'C:\\Users\\11931\\AppData\\Local\\Temp\\pip-install-yy0nccti\\fiona\\'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);'"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\11931\AppData\Local\Temp\pip-pip-egg-info-kk517f2i'
         cwd: C:\Users\11931\AppData\Local\Temp\pip-install-yy0nccti\fiona\
    Complete output (1 lines):
    A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment variable or use a GDAL_VERSION environment variable.
ERROR: Command errored out with exit status 1: python egg_info Check the logs for full command output.

error message


The error here is probably caused by gdal, but I have installed gdal and have been using it, so it may be a parameter setting problem.

Check the geopandas document ( and find that the dependency package of geopandas is:

  • numpy
  • pandas (version 0.23.4 or later)
  • shapely (interface to GEOS)
  • fiona (interface to GDAL)
  • pyproj (interface to PROJ; version 2.2.0 or later)

So the problem may be caused by fiona.

So I tried pip install fiona, failed, the error is consistent with the above error, indicating that it is a fiona problem, re-download fiona (, then install it offline, and then Then pip install geopandas, success.

successful install

Similar problems can be considered whether it is the problem of the following dependent packages:

pip install wheel
pip install pipwin

pipwin install numpy
pipwin install pandas
pipwin install shapely
pipwin install gdal
pipwin install fiona
pipwin install pyproj
pipwin install six
pipwin install rtree
pipwin install geopandas
created at:07-02-2021
edited at: 07-02-2021: