【问题标题】:error installing fiona in OSX 10.9在 OSX 10.9 中安装 fiona 时出错
【发布时间】: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 时遇到问题的人,但我还无法仅通过谷歌搜索找到解决方案。

【问题讨论】:

标签: python macos gdal shapely fiona


【解决方案1】:

如果您使用的是 XCode 5.1,则问题可能是 Clang 中无法识别的选项。有关如何解决此问题的详细信息,请参见此处:http://bruteforce.gr/bypassing-clang-error-unknown-argument.html

【讨论】:

    猜你喜欢
    • 2023-04-04
    • 2015-10-24
    • 2014-05-28
    • 1970-01-01
    • 2014-08-23
    • 2013-11-30
    • 2014-04-12
    • 1970-01-01
    • 2018-03-19
    相关资源
    最近更新 更多