Pip ffi.h Gcc Error ?

Discussion in 'Scripting' started by Gabriel9999, Mar 18, 2019.

  1. Gabriel9999

    Gabriel9999 MDL Novice

    Mar 11, 2019
    9
    0
    0
    I try to install install some library with the pip command. But when I try to install it I get an error like #include <ffi.h> . How can I solve this issue?
    ^
    compilation terminated.
    error: command 'gcc' failed with exit status 1
     
  2. TCM

    TCM MDL Addicted

    Aug 25, 2011
    805
    416
    30
    Install libffi-dev or whatever the package is called on your OS.
     
  3. samueltarcin9999

    samueltarcin9999 MDL Novice

    Mar 11, 2019
    14
    3
    0
    Hello
    There may be different causes for this issue but installing libffi development library will solve your problem.
    sudo apt install libffi-dev for Ubuntu.
    For others look followin link https://www.poftut.com/pip-ffi-h-gcc-error/