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

前端 未结 8 1297
遥遥无期
遥遥无期 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
    

提交回复
热议问题