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.
```
I got the same error for rasterio versions 1.2.6 to 1.0.26.
Any help in installing rasterio package for windows is much appreciated.
go to https://www.lfd.uci.edu/~gohlke/pythonlibs/ and search for GDAL, then download whichever version corresponds to your OS, download the .whl file then in the folder you download it, go to command prompt and 'pip install <file-downloaded>
You can set up using anaconda (https://www.anaconda.com/products/individual) the packages are quicker to install with fewer if not no installation errors.
Problem installing rasterio package in python 64-bit (for Windows). Error as below,
```
Collecting rasterio
Downloading rasterio-1.2.6.tar.gz (2.2 MB)
|████████████████████████████████| 2.2 MB 1.7 MB/s
Installing build dependencies ... done
Getting requirements to build wheel ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\python.exe' 'C:\Users\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py' get_requires_for_build_wheel 'C:\Users\AppData\Local\Temp\tmpp3fg7w7t'
cwd: C:\AppData\Local\Temp\pip-install-glq6gi3q\rasterio_6efe417705614a89a60e562846308cfa
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.
```
I got the same error for rasterio versions 1.2.6 to 1.0.26.
Any help in installing rasterio package for windows is much appreciated.
Thanks!
go to https://www.lfd.uci.edu/~gohlke/pythonlibs/ and search for GDAL, then download whichever version corresponds to your OS, download the .whl file then in the folder you download it, go to command prompt and 'pip install <file-downloaded>
do the same for rasterio and you should be fine.
Hi @Arihant,
You can set up using anaconda (https://www.anaconda.com/products/individual) the packages are quicker to install with fewer if not no installation errors.
Best,
Edgar
try using colab
Hi I am facing colab memory error. How may I resolve this type of situation?
Would love to get your kind guidance as well