尝试安装 bcrypt & 命令行抛出错误

Trying to install bcrypt & command line throwing errors

我是 运行 ubuntu 14.04。我打开命令并使用以下命令...

pip install bcrypt

我收到以下错误...

Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_alopex/bcrypt/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-VGb_HL-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_alopex/bcrypt
Storing debug log for failure in /tmp/tmpOURwCc

如果您想要调试日志,请询问,我会提供(超长)。

我该怎么做才能完成这项工作?

您可以使用 apt-get 安装 bcrypt:

apt-get install bcrypt