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
Post a Comment