Skip to content

A GDAL API version must be specified. #87

@sapkotashishir

Description

@sapkotashishir

While trying to install Pysal via OSGEO shell following error occurs.

C:\Windows\System32>python -m pip install pysal==2.1.0

Collecting pysal==2.1.0
Using cached pysal-2.1.0.tar.gz (25.0 MB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: scipy in c:\progra2\qgis31.16\apps\python37\lib\site-packages (from pysal==2.1.0) (1.5.2)
Requirement already satisfied: pandas in c:\progra2\qgis31.16\apps\python37\lib\site-packages (from pysal==2.1.0) (1.0.1)
Collecting seaborn
Using cached seaborn-0.12.0-py3-none-any.whl (285 kB)
Requirement already satisfied: matplotlib in c:\progra2\qgis31.16\apps\python37\lib\site-packages (from pysal==2.1.0) (3.1.3)
Collecting descartes
Using cached descartes-1.1.0-py3-none-any.whl (5.8 kB)
Collecting palettable
Using cached palettable-3.3.0-py2.py3-none-any.whl (111 kB)
Collecting scikit-learn
Using cached scikit_learn-1.0.2-cp37-cp37m-win32.whl (6.4 MB)
Collecting geopandas
Using cached geopandas-0.10.2-py2.py3-none-any.whl (1.0 MB)
Collecting deprecated
Using cached Deprecated-1.2.13-py2.py3-none-any.whl (9.6 kB)
Collecting rtree
Using cached Rtree-1.0.0.tar.gz (48 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting tqdm
Using cached tqdm-4.64.1-py2.py3-none-any.whl (78 kB)
Collecting wrapt<2,>=1.10
Using cached wrapt-1.14.1-cp37-cp37m-win32.whl (33 kB)
Collecting fiona>=1.8
Using cached Fiona-1.8.21.tar.gz (1.0 MB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [1 lines of output]
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.
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

I would be grateful if anyone could help me on this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions