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

后端 未结 4 933
我在风中等你
我在风中等你 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:34

    Without using sudo and CFLAGS and CPPFLAGS (unnecessary for pip):

    $ brew install pkg-config libffi
    $ export PKG_CONFIG_PATH=/usr/local/Cellar/libffi/3.0.13/lib/pkgconfig/
    $ pip install bcrypt
    

提交回复
热议问题