PIP install unable to find ffi.h even though it recognizes libffi

前端 未结 8 1279
遥遥无期
遥遥无期 2020-12-15 02:37

I have installed libffi on my Linux server as well as correctly set the PKG_CONFIG_PATH environment variable to the correct directory, as pip

相关标签:
8条回答
  • 2020-12-15 03:06

    pip packages usually don't use pkg-config. Therefore, you should set CFLAGS and LDFLAGS manually:

    CFLAGS=$(pkg-config --cflags libffi) LDFLAGS=$(pkg-config --libs libffi) pip install pyOpenSSL
    
    0 讨论(0)
  • 2020-12-15 03:07

    You need to install the development package as well.

    libffi-dev on Debian/Ubuntu, libffi-devel on Redhat/Centos/Fedora.

    0 讨论(0)
提交回复
热议问题