Package libffi was not found in the pkg-config search path REDHAT6.5

前端 未结 6 1026
甜味超标
甜味超标 2020-12-31 09:37

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

6条回答
  •  忘掉有多难
    2020-12-31 10:11

    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

提交回复
热议问题