首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Fiona在Centos下的安装

Fiona在Centos下的安装
EN

Stack Overflow用户
提问于 2015-11-03 13:03:08
回答 1查看 956关注 0票数 1

这个问题与我之前的两个问题相关:

Geospatial Analytics in Python

Installing geopandas on Python 2.6

我通过升级整个系统让geopandas正常工作。我不能让Fiona工作,下面是我尝试时得到的错误

代码语言:javascript
复制
[root@sandbox ~]# pip install fiona

   fiona/ogrext.c: In function ‘pyx_f_5fiona_6ogrext_14FeatureBuilder_build’:

    fiona/ogrext.c:3255: warning: assignment discards qualifiers from pointer target type
    fiona/ogrext.c: In function ‘pyx_pf_5fiona_6ogrext_7Session_4start’:
    fiona/ogrext.c:8043: warning: implicit declaration of function ‘OGR_L_GetName’
    fiona/ogrext.c:8043: warning: assignment makes pointer from integer without a cast
    fiona/ogrext.c: In function ‘pyx_pf_5fiona_6ogrext_7Session_14get_driver’:
    fiona/ogrext.c:8912: warning: assignment discards qualifiers from pointer target type
    fiona/ogrext.c: In function ‘pyx_pf_5fiona_6ogrext_7Session_16get_schema’:
    fiona/ogrext.c:9162: warning: assignment discards qualifiers from pointer target type
    fiona/ogrext.c: In function ‘pyx_pf_5fiona_6ogrext_7Session_18get_crs’:
    fiona/ogrext.c:10069: warning: assignment discards qualifiers from pointer target type
    fiona/ogrext.c:10078: warning: assignment discards qualifiers from pointer target type
    fiona/ogrext.c: In function ‘pyx_pf_5fiona_6ogrext_7Session_22get_extent’:
    fiona/ogrext.c:11112: warning: passing argument 2 of ‘OGR_L_GetExtent’ from incompatible pointer type
    /usr/include/gdal/ogr_api.h:324: note: expected ‘struct OGREnvelope *’ but argument is of type ‘struct pyx_t_5fiona_6ograpi_OGREnvelope *’
    fiona/ogrext.c: In function ‘pyx_pf_5fiona_6ogrext_14WritingSession_start’:
    fiona/ogrext.c:13233: warning: statement with no effect
    fiona/ogrext.c:14390: warning: assignment makes pointer from integer without a cast
    fiona/ogrext.c: In function ‘pyx_pf_5fiona_6ogrext_13_listlayers’:
    fiona/ogrext.c:19743: warning: assignment makes pointer from integer without a cast
    fiona/ogrext.c: In function ‘pyx_pf_5fiona_6ogrext_15buffer_to_virtual_file’:
    fiona/ogrext.c:19866: error: ‘VSILFILE’ undeclared (first use in this function)
    fiona/ogrext.c:19866: error: (Each undeclared identifier is reported only once
    fiona/ogrext.c:19866: error: for each function it appears in.)
    fiona/ogrext.c:19866: error: ‘pyx_v_vsi_handle’ undeclared (first use in this function)
    error: command 'gcc' failed with exit status 1
    ----------------------------------------
Command "/usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-oCUpd1/fiona/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-8szSWo-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-oCUpd1/fiona
EN

回答 1

Stack Overflow用户

发布于 2015-11-12 06:58:36

好的..。所以大约一周后,这就是我所做的,它似乎起作用了

http://download.osgeo.org/gdal/下载了源代码并编译了源代码

https://pypi.python.org/pypi/GDAL/下载了python的GDAL并构建了它

我把python更新到了2.7

然后:

pip安装fiona

pip安装geopandas

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/33491682

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档