這個question類似,我在Cygwin的下安裝bcrypt,並收到此錯誤麻煩:錯誤與PIP在Cygwin安裝bcrypt:找不到ffi.h(安裝libffi)
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'
參數告訴pip
確切地說我的系統上有ffi.h
文件。
而安裝Python-glanceclient我得到了相同的錯誤消息。就我而言,我通過添加cygwin軟件包「libffi-devel」來解決這個問題。 – mcoolive 2015-04-30 06:43:49