문제

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top