Estoy usando una instalación casera de python y obtengo un error al usar pip en un entorno virtualenvwrapper :
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing 'libffi.pc'
to the PKG_CONFIG_PATH environment variable
Homebrew tiene una fórmula para libffi ( brew install libffi
), que parece tener éxito.
Puedo correr
$ python-config --include
que produce:
-I/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/include/python2.7
¿Entonces debería "agregar el directorio que contiene 'libffi.pc'"?
echo $PKG_CONFIG_PATH
produce una cadena vacía.
[Alguien en SO había recomendado] [3]:
Use -I /opt/local/include on the command line
o
C_INCLUDE_PATH=/opt/local/include in the environment.
¿Agregaría la línea?
C_INCLUDE_PATH=/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/include/python2.7
a ~/.bash_profile
?
o posiblemente export PKG_CONFIG_PATH=/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/include/python2.7