草庐IT

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

我尝试过两种不同的方式安装geopandas:pipinstallgeopandas或通过克隆gitclonehttps://github.com/kjordahl/geopandas在这两种情况下,安装文件setup.py都会运行一段时间,然后返回此错误消息:src/fiona/ogrinit.c:300:23:fatalerror:cpl_error.h:Nosuchfileordirectorycompilationterminated.error:command'gcc'failedwithexitstatus1fiona是OGR的接口(interface)所以Python可以

python - 导入 geopandas 时出错

导入时出现以下错误importgeopandasasgpd---------------------------------------------------------------------------ImportErrorTraceback(mostrecentcalllast)in()---->1importgeopandasasgpd//anaconda/lib/python2.7/site-packages/geopandas/__init__.pyin()2fromgeopandas.geodataframeimportGeoDataFrame3---->4fromge

python - 无法在 Windows 上安装 Fiona

我在Ubuntu上完成了一个软件,但在Windows上运行这个软件时遇到了几个问题。我现在最大的问题是我正在尝试安装“fiona”——我已经在我的PIP包中安装了它——但由于某种原因它无法正常工作。所以我尝试通过从originalrepository下载安装程序来安装它.按照规则:使用pythonsetup.pyinstall我已经添加了一些环境变量:GDAL_DATAGDAL_DRIVER_PATH除此之外,我还在变量PATH上添加了GDAL的路径还有另一种方法,通过使用另一个命令,但我不知道会怎样gdalincludefilesgdallibrarypythonsetup.pybu