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

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

    You can use CFLAGS (and LDFLAGS or various other compiler and linker options) in front of the pip command (ditto for setup.py):

    Something similar to the following should work:

    CFLAGS=-I/usr/include/libffi/include pip install pyOpenSSL
    

提交回复
热议问题