Python3无法安装bcrypt

时间:2015-07-05 19:00:03

标签: python python-3.x pip install

当我尝试使用-O3安装bcrypt时,

我明白了:

`command / usr / bin / python3 -c“import setuptools,tokenize; file ='/ tmp / pip-build-vhc0qtab / bcrypt / setup.py'; exec(compile(getattr) (tokenize,'open',open)( file )。read()。replace('\ r \ n','\ n'), file ,'exec '))“安装--record /tmp/pip-v9cb4je7-record/install-record.txt --single-version-external-managed --compile --user失败,错误代码为1 / tmp / pip-build- vhc0qtab / bcrypt 在/home/vkristof/.pip/pip.log

中存储失败的调试日志

调试日志:

http://pastebin.com/UEa3WEG3

1 个答案:

答案 0 :(得分:5)

其中一个错误消息指出,缺少libffi。在类似debian的系统上,您可以尝试$ sudo apt-get install libffi6 libffi-dev