Hi all,
For the record: I'm using the Anaconda(1.9.2) Python 2.7 distro on OS X 10.9.3, with xcode 5.1 installed.
I was trying to pip install cffi, but kept getting the error c/_cffi_backend.c:14:10: fatal error: 'ffi.h' file not found.
Finally I found a solution here:
...which is quite close to that of David's, except for the exports. So here's what I did:
Installed homebrew (basically just for this, as it does not support Anaconda), and then
brew install pkg-config libffi
export CFLAGS=-Qunused-arguments
export CPPFLAGS=-Qunused-arguments
export PKG_CONFIG_PATH=/usr/local/Cellar/libffi/3.0.13/lib/pkgconfig/
pip install cffi
The only problem is, that the lzmaffi library - which is what I need cffi for - still refuses to install:
File "/Users/ville/anaconda/lib/python2.7/site-packages/cffi/ffiplatform.py", line 50, in _build
raise VerificationError('%s: %s' % (e.__class__.__name__, e))
This could be due to the use of homebrew somehow, but unfortunately how that might be is not immediately obvious to me...
Regards,
Ville