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
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.