Error while installing GDAL

前端 未结 4 1679
庸人自扰
庸人自扰 2021-02-03 22:07

I\'m trying to install GDAL through pip. But I\'m getting this error:

extensions/gdal_wrap.cpp:3089:27: fatal error: cpl_vsi_error.h: No such     file or directo         


        
4条回答
  •  心在旅途
    2021-02-03 22:54

    Check that you installed GDAL using this command

    gdal-config --version
    

    Then run this commands:

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

提交回复
热议问题