Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/c/67.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 菲奥娜在CITOS中的安装_Python_Geospatial_Geopandas_Fiona - Fatal编程技术网

Python 菲奥娜在CITOS中的安装

Python 菲奥娜在CITOS中的安装,python,geospatial,geopandas,fiona,Python,Geospatial,Geopandas,Fiona,这个问题与我前面的两个问题有关: 我通过升级整个系统让Geopanda工作。我没有运气让菲奥娜工作,下面是我尝试时所得到的错误 [root@sandbox ~]# pip install fiona fiona/ogrext.c: In function ‘pyx_f_5fiona_6ogrext_14FeatureBuilder_build’: fiona/ogrext.c:3255: warning: assignment discards qualifiers fro

这个问题与我前面的两个问题有关:

我通过升级整个系统让Geopanda工作。我没有运气让菲奥娜工作,下面是我尝试

时所得到的错误
[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

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

从下载源代码并编译源代码

从下载并构建了用于python的GDAL

我将python更新为2.7

然后:

安装菲奥娜< /P>


pip安装地质信号板

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

从下载源代码并编译源代码

从下载并构建了用于python的GDAL

我将python更新为2.7

然后:

安装菲奥娜< /P>


pip安装geopandas

您是否安装了要求?“Fiona需要Python2.6、2.7、3.3或3.4以及GDAL/OGR 1.8+。要从源代码发行版构建,您需要一个C编译器、GDAL和Python开发头文件和库(适用于Debian/Ubuntu的libgdal1 dev、适用于CentOS/Fedora的GDAL dev)。@BurhanKhalid Python 2.6.6 Python-devel-2.6.6-64.el6.x86_64 GDAL-1.7.3-15.el6.x8664gcc已安装(gcc(gcc)4.4.7 20120313(Red Hat 4.4.7-16))有趣的是-gdal.h-我不知道它来自何处,但它似乎是一个非常重要的文件。如此之多,以至于yum-search-gdal*给我“警告:找不到匹配的:gdal.h”。我还完成了导出CPLUS_INCLUDE_PATH=/usr/INCLUDE/gdal和导出C_INCLUDE_PATH=/usr/INCLUDE/gdal,它们在编译之前包含了所有的头文件。您需要安装gdal dev,它将为您提供gdal.h;从您的输出中,您只安装了
gdal
。您还有错误的版本(1.7)其中最低要求为1。8@BurhanKhalidpip install gdal dev向我提供
收集gdal dev无法找到满足gdal dev要求的版本(来自版本:)未找到与gdal dev匹配的发行版
是否安装了要求?“Fiona需要Python2.6、2.7、3.3或3.4以及GDAL/OGR 1.8+。要从源代码发行版构建,您需要一个C编译器、GDAL和Python开发头文件和库(适用于Debian/Ubuntu的libgdal1 dev、适用于CentOS/Fedora的GDAL dev)。@BurhanKhalid Python 2.6.6 Python-devel-2.6.6-64.el6.x86_64 GDAL-1.7.3-15.el6.x8664gcc已安装(gcc(gcc)4.4.7 20120313(Red Hat 4.4.7-16))有趣的是-gdal.h-我不知道它来自何处,但它似乎是一个非常重要的文件。如此之多,以至于yum-search-gdal*给了我“警告:找不到匹配的:gdal.h”“。我还完成了导出CPLUS_INCLUDE_PATH=/usr/INCLUDE/gdal和导出C_INCLUDE_PATH=/usr/INCLUDE/gdal,它们在编译之前包含了所有的头文件。您需要安装gdal dev,它将为您提供gdal.h;从您的输出中,您只安装了
gdal
。您还有错误的版本(1.7)其中最低要求为1。8@BurhanKhalidpip install gdal dev给我
收集gdal dev找不到满足要求的版本gdal dev(来自版本:)找不到与gdal dev匹配的发行版
遇到了相同的错误。对我来说,遇到了相同的错误。对我来说,成功了