【问题标题】:Python3 can't install bcryptPython3 无法安装 bcrypt
【发布时间】:2015-09-22 21:29:29
【问题描述】:

当我尝试使用 python3 -m pip install bcrypt 安装 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 '))" install --record /tmp/pip-v9cb4je7-record/install-record.txt --single-version-externally-managed --compile --user 失败,错误代码 1 在 /tmp/pip-build- vhc0qtab/bcrypt 在 /home/vkristof/.pip/pip.log 中存储失败的调试日志

调试日志:

http://pastebin.com/UEa3WEG3

【问题讨论】:

  • 谢谢,它有效。您应该将其发布为答案。

标签: python python-3.x pip installation


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 2020-03-31
    • 2012-09-20
    • 1970-01-01
    • 2014-11-09
    • 2021-05-24
    • 2018-03-16
    • 1970-01-01
    • 2019-01-22
    • 2017-10-13
    相关资源
    最近更新 更多