gpt4 book ai didi

c++ - 在 python cpl_error.h : No such file or directory 中安装 Fiona 时遇到问题

转载 作者:塔克拉玛干 更新时间:2023-11-03 02:03:01 25 4
gpt4 key购买 nike

我尝试过两种不同的方式安装 geopandas:pip install geopandas 或通过克隆

git clone https://github.com/kjordahl/geopandas

在这两种情况下,安装文件 setup.py 都会运行一段时间,然后返回此错误消息:

src/fiona/ogrinit.c:300:23: fatal error: cpl_error.h: No such file or directory

compilation terminated.

error: command 'gcc' failed with exit status 1

fionaOGR 的接口(interface)所以 Python 可以读取地理空间数据。 cpl_error.h 似乎丢失了。我能做什么?

最佳答案

尝试安装 gdal 二进制文件:

sudo pip install libgdal-dev

后来是菲奥娜:

sudo pip install fiona

关于c++ - 在 python cpl_error.h : No such file or directory 中安装 Fiona 时遇到问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19883315/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com