安装Review Board时,我发现我需要一个加密模块。安装时,使用以下命令:
sudo easy_install --upgrade cryptography
我收到以下错误:
Searching for cryptography
Reading https://pypi.python.org/simple/cryptography/
Best match: cryptography 1.4
Downloading https://pypi.python.org/packages/a9/5b/a383b3a778609fe8177bd51307b5ebeee369b353550675353f46cb99c6f0/cryptography-1.4.
tar.gz#md5=a9763e3831cc7cdb402c028fac1ceb39
Processing cryptography-1.4.tar.gz
Writing /tmp/easy_install-psOI1n/cryptography-1.4/setup.cfg
Running cryptography-1.4/setup.py -q bdist_egg --dist-dir /tmp/easy_install-psOI1n/cryptography-1.4/egg-dist-tmp-EEG_6Z
c/_cffi_backend.c:15:17: fatal error: ffi.h: No such file or directory
#include <ffi.h>
^
compilation terminated.
error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
我该如何解决?
答案 0 :(得分:2)
安装libffi:
sudo apt-get install libffi-dev