python - Error while installing GDAL -


i'm trying install gdal through pip. i'm getting error:

extensions/gdal_wrap.cpp:3089:27: fatal error: cpl_vsi_error.h: no such     file or directory  #include "cpl_vsi_error.h"                            ^ compilation terminated. error: command 'x86_64-linux-gnu-gcc' failed exit status 1 

i used these commands:

sudo apt-get install libgdal-dev export cplus_include_path=/usr/include/gdal export c_include_path=/usr/include/gdal pip install gdal 

can tell me how install ?

check installed gdal using command

gdal-config --version 

then run commands:

pip install --download="some_path" gdal cd some_path tar -xvzf gdal-<version>.tar.gz cd gdal-<version> python setup.py build_ext --include-dirs=/usr/include/gdal/ python setup.py install 

Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -