简体   繁体   中英

error installing fiona in OSX 10.9

I am having difficulty with installing fiona.

I have followed fiona's official documentation ( https://github.com/sgillies/fiona ) as well as the related thread below.

trouble installing Fiona in python cpl_error.h: No such file or directory

I had no trouble with pip install shapely and I used brew install gdal. When I use the command pip install fiona I get a number of errors

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

as well as warnings with regards to gdal-config such as "Failed to get options via gdal-config"

I am worried there is an issue with gdal-config's location thats causing the issue. I think I might have had GDAL previously installed with kyngchaos for QGIS use a while ago before I used the brew install

Any insights would be much appreciated. I can't imagine I am the only one who has had issues installing fiona, but I haven't been able to find a resolution through google searching alone yet.

If you're using XCode 5.1, the problem is likely unrecognised options in Clang. See here for details on how to fix this: http://bruteforce.gr/bypassing-clang-error-unknown-argument.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM