Timeline for Python GDAL package missing header file when installing via pip
Current License: CC BY-SA 3.0
14 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 20, 2017 at 8:53 | comment | added | Holt | @TestSubject I have recently installed python binding for GDAL 2.1 on OSX using the compatibility framework, and I have summarised the steps on this answer. Maybe you'll find this useful. The major issue is that the usage of the gdal-config binary is broken when using pip. | |
| S Nov 14, 2016 at 18:32 | history | suggested | DanCat | CC BY-SA 3.0 | pip --no-install does not work with later versions of pip |
| Nov 14, 2016 at 17:37 | review | Suggested edits | |||
| S Nov 14, 2016 at 18:32 | |||||
| Jun 28, 2016 at 0:02 | comment | added | TestSubject | I recently had a wonderful time installing GDAL on OSX. Currently, the latest Python bindings for GDAL depend on 2.1, but the latest available GDAL in homebrew is 1.11.3, and 1.11.4 for GDAL Complete. I installed via homebrew, brew install gdal, and used an older version of the GDAL Python package: pip install --global-option=build_ext --global-option="-L/usr/local/include/gdal/" 'gdal==1.9.1' | |
| Nov 24, 2014 at 16:07 | history | edited | nickves | CC BY-SA 3.0 | added 10 characters in body |
| Nov 22, 2014 at 15:59 | history | edited | nickves | CC BY-SA 3.0 | added 105 characters in body |
| Oct 11, 2013 at 6:38 | comment | added | Paul Whipp | I had the same problem as theJollySin using Ubuntu 13.04 - my complete answer is further down (too long for a comment ;) | |
| Mar 25, 2013 at 18:50 | comment | added | nickves | Yes, It seems that gdal bindings are trying to find gdal-confing within your virtualenv, and it fails because it's not there. A possible solution (I haven't test it!) is to create a symbolic link of your gdal-config to your virtualenv directory ( ls -s /path/to/gdal/gdal-config /path-to-virtualenvs/your-env/bin/gdal-config ). | |
| Mar 23, 2013 at 18:36 | comment | added | john_science | @nickves I am trying to install GDAL using virtualenvwrapper in Ubuntu, and when I try your first line: pip install --no-install GDAL, I get the error: __main__.gdal_config_error: [Errno 2] No such file or directory Any idea? | |
| Jul 9, 2012 at 22:51 | history | edited | nickves | CC BY-SA 3.0 | expanded answer |
| Jul 9, 2012 at 17:35 | comment | added | Kevin | GDAL v1.9.1. gdal-config --libs -> -L/usr/lib -lgdal | |
| Jul 9, 2012 at 9:40 | comment | added | nickves | what is the output when you run 'gdal-config --version' and 'gdal-config --libs' ? | |
| Jul 8, 2012 at 22:26 | comment | added | Kevin | Hi thanks for you answer but I really need a way to install via pip as I will be creating isolated environments using virtualenv during CI process. | |
| Jul 8, 2012 at 21:33 | history | answered | nickves | CC BY-SA 3.0 |