Skip to content

Installation error on Windows - ERROR: A GDAL API version must be specified #1

@amsantac

Description

@amsantac

Hi. Thanks for developing this plugin. Very promising!

I tried to install on Windows following your instructions. I did steps 1-3 without problem.

After running step 4 I get the following error:

ERROR: Command errored out with exit status 1: command: 'c:\osgeo41\bin\python3.exe' 'C:\OSGEO41\apps\Python37\lib\site-packages\pip_vendor\pep517_in_process.py' get_requires_for_build_wheel 'C:\Users \AL61EE1\AppData\Local\Temp\tmp3oe9w1vb'
cwd: C:\Users\AL61EE
1\AppData\Local\Temp\pip-install-4i3dj5te\rasterio
Complete output (2 lines):
INFO:root:Building on Windows requires extra options to setup.py to locate needed GDAL files. More information is available in the README.
ERROR: 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: 'c:\osgeo41\bin\python3.exe' 'C: \OSGEO41\apps\Python37\lib\site-packages\pip_vendor\pep517_in_process.py' get _requires_for_build_wheel 'C:\Users\AL61EE~1\AppData\Local\Temp\tmp3oe9w1vb' Check the logs for full command output.

I googled this error and some of the proposed solutions suggest to remove GDAL and reinstall geopandas. I am not sure if that's a good idea or how to do that or if the problem is due to rasterio. Other package developers try to remove the geopandas dependency.

I'd appreciate any help to solve this issue.

Thanks!

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