3

この質問と同様に、Cygwin で bcrypt をインストールする際に問題が発生し、次のエラーが表示されます。

Downloading/unpacking bcrypt
  Downloading bcrypt-1.0.2.tar.gz (40kB): 40kB downloaded
  Running setup.py (path:/tmp/pip_build_Chris/bcrypt/setup.py) egg_info for package bcrypt
    c/_cffi_backend.c:13:17: fatal error: ffi.h: No such file or directory
     #include <ffi.h>
                     ^
    compilation terminated.
...
    distutils.errors.DistutilsError: Setup script exited with error: command 'gcc' failed with exit status 1
    Complete output from command python setup.py egg_info:
    c/_cffi_backend.c:13:17: fatal error: ffi.h: No such file or directory

 #include <ffi.h>
                 ^

compilation terminated.

libffi-develパッケージがインストールされ、引数を使用して、ファイルがシステム上のどこにあるかを正確に伝えようとし--global-option='-I/lib/libffi-3.0.13/include'ましたpipffi.h

4

2 に答える 2