0
後命令PIP安裝Spotify的,鬆土時錯誤代碼一個試圖安裝Python模塊
Command "/Users/ink/.pyenv/versions/2.7.10/bin/python2.7 -u -c "import
setuptools,
tokenize;__file__='/private/var/folders/x4/6m1qwdmx7x9_qsbwv4zsny6w0000gn/T
/pip-build-oQ_7kB/cffi/setup.py';exec(compile(getattr(tokenize, 'open',
open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))"
install --record /var/folders/x4/6m1qwdmx7x9_qsbwv4zsny6w0000gn/T/pip-
3YzrfM-record/install-record.txt --single-version-externally-managed --
compile" failed with error code 1 in
/private/var/folders/x4/6m1qwdmx7x9_qsbwv4zsny6w0000gn/T/pip-build-
oQ_7kB/cffi/
也這是非常重要的
c/_cffi_backend.c:15:10: fatal error: 'ffi.h' file not found
#include <ffi.h>
^
1 error generated.
error: command 'clang' failed with exit status 1
檢查您是否已經安裝libffi和libffi-dev的。 – Xiflado
你需要安裝開發頭文件http://stackoverflow.com/questions/12982486/glib-compile-error-ffi-h-but-libffi-is-installed –