Error installing bcrypt with pip on OS X: can't find ffi.h (libffi is installed)

后端 未结 4 936
我在风中等你
我在风中等你 2020-12-02 08:53

I\'m getting this error when trying to install bcrypt with pip. I have libffi installed in a couple places (the Xcode OS X SDK, and from homebrew), but I don\'t know how to

4条回答
  •  失恋的感觉
    2020-12-02 09:21

    I finally got it working with the following with a little help from these posts:

    brew install pkg-config libffi
    sudo bash
    export CFLAGS=-Qunused-arguments
    export CPPFLAGS=-Qunused-arguments
    export PKG_CONFIG_PATH=/usr/local/Cellar/libffi/3.0.13/lib/pkgconfig/
    pip install bcrypt
    

提交回复
热议问题