【发布时间】:2014-06-19 15:08:01
【问题描述】:
我在安装 fiona 时遇到了困难。
我已经关注了 fiona 的官方文档 (https://github.com/sgillies/fiona) 以及下面的相关帖子。
trouble installing Fiona in python cpl_error.h: No such file or directory
我对 pip install shapely 没有任何问题,我使用了 brew install gdal。当我使用命令 pip install fiona 时出现许多错误
clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
error: command 'cc' failed with exit status 1
以及关于 gdal-config 的警告,例如 "Failed to get options via gdal-config"
我担心导致问题的 gdal-config 位置存在问题。我想在我使用 brew install 之前,我之前可能已经安装了 GDAL 和 kyngchaos 以供 QGIS 使用
任何见解都将不胜感激。我无法想象我是唯一一个在安装 fiona 时遇到问题的人,但我还无法仅通过谷歌搜索找到解决方案。
【问题讨论】:
-
您使用的是 XCode 5.1 吗?如果是这样,这可能是问题/解决方案:bruteforce.gr/bypassing-clang-error-unknown-argument.html
-
成功了!谢谢你结束了我的头痛!!这么简单的解决方案。
-
没问题,我已将其添加为正确答案。
标签: python macos gdal shapely fiona