Error while installing GDAL

前端 未结 4 1665
庸人自扰
庸人自扰 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:47

    pip install GDAL==$(gdal-config --version | awk -F'[.]' '{print $1"."$2}')
    

    This is a copy-paste of this comment by nicerobot, that at this time received more up votes than all currently posted answers combined.

    As far as I can tell, it asks pip to install the pip package of the same version as the installed gdal system package.

提交回复
热议问题