我正在Ubuntu22.04上更新GDAL:
python3 -m pip install --upgrade GDAL
此错误发生:
extensions/gdal_array_wrap.cpp:3237:10: fatal error: ogr_recordbatch.h: Aucun fichier ou dossier de ce type
3237 | #include "ogr_recordbatch.h"
| ^~~~~~~~~~~~~~~~~~~
compilation terminated.
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1“拍卖无名氏档案类型”是指没有在法语中找到的文件或文件夹。
OGR已安装并运行良好:
ogrinfo --version
GDAL 3.4.1, released 2021/12/27我想不通..。
发布于 2022-11-18 16:10:20
ogr_recordbatch.h是GDAL3.6.0-https://github.com/OSGeo/gdal/blob/v3.6.0/NEWS.md中新的包含文件之一。
显然,您的系统-从Ubuntu安装的GDAL是一个较旧的版本- 3.4.1。
我不知道你想做什么。
如果您只想更新Python模块,那么它需要有一个适当的系统安装GDAL。这不管用。
如果您试图更新系统安装的GDAL没有当前的GDAL。
如果需要当前版本,您有两个选项:
Docker
。
https://stackoverflow.com/questions/74473006
复制相似问题