I am trying to run setup.py related to a proprietary software installation and it has dependencies on libffi.
Since its Redhat 6.5 the python version was 2.6 and i i
Faced a similar issue while installing paramiko using pip3:
$ pip3 install paramiko
ERROR:
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 No package 'libffi' found
No package 'libffi' found c/_cffi_backend.c:15:17: fatal error: ffi.h: No such file or directory compilation terminated.
distutils.errors.DistutilsExecError: command 'x86_64-linux-gnu-gcc' failed with exit status 1
RESOLUTION:
$ sudo apt-get install libffi-dev
$ pip3 install paramiko
Successfully installed asn1crypto bcrypt cffi cryptography-1.2.3 paramiko-1.16.0 pycparser pynacl six-1.10.0