我正在尝试通过 pip 安装 GDAL。但我收到此错误:
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 with exit status 1
我使用了这些命令:
sudo apt-get install libgdal-dev
export CPLUS_INCLUDE_PATH=/usr/include/gdal
export C_INCLUDE_PATH=/usr/include/gdal
pip install GDAL
谁能告诉我如何安装它?
原文由 Rahul 发布,翻译遵循 CC BY-SA 4.0 许可协议
使用此命令检查您是否安装了 GDAL
然后运行这个命令: